Closed sergeiivanitsa closed 2 years ago
Hi there,
Line 28 needs to be a Path
towards a ttf (TrueTypeFont) font file.
In order to test whether this code works, I included a custom font in the tests (called JsFont-Regular). There are 2 issues however:
You simply need to provide borb
with a Path
to the actual font file you'd like to use.
You can find a ton of free fonts over at Google Fonts. Simply download one you like (check whether it can display the characters you need) and then copy the path into your code.
Kind regards, Joris Schellekens
Where to get the Font parameter from ?
I am a novice developer, and therefore I want to apologize right away, perhaps for someone the answer to my question will seem obvious, but I have despaired of finding a solution on my own.
My project requires a font that supports unicode characters. To be more precise, Cyrillic characters.
While studying the bomb documentation, I found an example for connecting my own fonts in the section 2.4.1 Setting the Font of a Paragraph Steps to reproduce the behaviour:
But when I transfer the code from the example to VSCode, I see that the Font parameter is not imported from anywhere. And the code doesn't work
I tried to import Font from msilib.schema, but the terminal gives an error.