You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ loading polyfills multiple times. Might still be nifty for small applications or
185
185
186
186
The 14 standard fonts in PDF are limited to the ASCII-codepage. If you want to use UTF-8 you have to integrate a
187
187
custom font, which provides the needed glyphs. jsPDF supports .ttf-files. So if you want to have for example
188
-
chinese text in your pdf, your font has to have the necessary chinese glyphs. So check if your font supports
188
+
Chinese text in your pdf, your font has to have the necessary Chinese glyphs. So, check if your font supports
189
189
the wanted glyphs or else it will show garbled characters instead of the right text.
190
190
191
191
To add the font to jsPDF use our fontconverter in
@@ -194,7 +194,7 @@ The fontconverter will create a js-file with the content of the provided ttf-fil
194
194
and additional code for jsPDF. You just have to add this generated js-File to your project.
195
195
You are then ready to go to use setFont-method in your code and write your UTF-8 encoded text.
196
196
197
-
Alternatively you can just load the content of the \*.ttf file as binary string using `fetch` or `XMLHttpRequest` and
197
+
Alternatively you can just load the content of the \*.ttf file as a binary string using `fetch` or `XMLHttpRequest` and
198
198
add the font to the PDF file:
199
199
200
200
```js
@@ -215,7 +215,7 @@ of them are API breaking, which is why there is an API-switch between two API mo
215
215
- In "compat" API mode, jsPDF has the same API as MrRio's original version, which means full compatibility with plugins.
216
216
However, some advanced features like transformation matrices and patterns won't work. This is the default mode.
217
217
- In "advanced" API mode, jsPDF has the API you're used from the yWorks-fork version. This means the availability of
218
-
all advanced features like patterns, FormObjects and transformation matrices.
218
+
all advanced features like patterns, FormObjects, and transformation matrices.
219
219
220
220
You can switch between the two modes by calling
221
221
@@ -236,7 +236,7 @@ JsPDF will automatically switch back to the original API mode after the callback
236
236
Please check if your question is already handled at Stackoverflow <https://stackoverflow.com/questions/tagged/jspdf>.
237
237
Feel free to ask a question there with the tag `jspdf`.
238
238
239
-
Feature requests, bug reports etc. are very welcome as issues. Note that bug reports should follow these guidelines:
239
+
Feature requests, bug reports, etc. are very welcome as issues. Note that bug reports should follow these guidelines:
240
240
241
241
- A bug should be reported as an [mcve](https://stackoverflow.com/help/mcve)
242
242
- Make sure code is properly indented and [formatted](https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code) (Use ``` around code blocks)
@@ -247,7 +247,7 @@ Feature requests, bug reports etc. are very welcome as issues. Note that bug rep
247
247
248
248
jsPDF cannot live without help from the community! If you think a feature is missing or you found a bug, please consider
249
249
if you can spare one or two hours and prepare a pull request. If you're simply interested in this project and want to
250
-
help, have a look at the open issues, especially those labelled with "bug".
250
+
help, have a look at the open issues, especially those labeled with "bug".
251
251
252
252
You can find information about building and testing jsPDF in the
0 commit comments