commit 6d62642c7f111ea7d0aea306831edcc16876f135 parent 5daca37f5cb1d72c50c397780b3d89d146af64c1 Author: Sheng <webmaster0115@gmail.com> Date: Sat, 22 Jun 2019 14:09:04 +0800 Updated README Diffstat:
M | README.md | | | 16 | ++++++++++++++++ |
M | README.rst | | | 18 | ++++++++++++++++++ |
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md @@ -98,6 +98,22 @@ wssh.reset_encoding(); wssh.send('ls -l'); ``` +### Custom Font + +Custom font family usage example: +```html +<style> + @font-face { + font-family: 'font-name'; + src: url('static/css/fonts/your-favorite-font'); + } + + body { + font-family: 'font-name'; + } +</style> +``` + ### URL Arguments Support passing arguments by url (query or fragment) like following examples: diff --git a/README.rst b/README.rst @@ -103,6 +103,24 @@ Browser console // send a command to the server wssh.send('ls -l'); +Custom Font +~~~~~~~~~~~ + +Custom font family usage example: + +.. code:: html + + <style> + @font-face { + font-family: 'font-name'; + src: url('static/css/fonts/your-favorite-font'); + } + + body { + font-family: 'font-name'; + } + </style> + URL Arguments ~~~~~~~~~~~~~