Replies: 2 comments
-
Unfortunately, this is one of the many things that is not documented (properly). As you might know, ChatGPT (and other LLMs) tend to make up things. rinohtype does not recognize a It is possible to use a custom font, but requires writing a bit of Python code. However, packages for the DejaVu fonts are available on PyPI, so you don't need to bother with that: See PyPI for the list of rinohtype typeface packages: https://pypi.org/search/?q=rinohtype-typeface With these packages installed, you can use these fonts in your stylesheet: [VARIABLES]
serif_typeface = DejaVu Serif
sans_typeface = DejaVu Sans
mono_typeface = DejaVu Sans Mono If you render your document using rinohtype will first try to download unknown fonts from Google Fonts, but DejaVu is not available from there. |
Beta Was this translation helpful? Give feedback.
-
Thanks, that worked! I just added Had to make some other fixes as well as I was trying to ship/use/hack a custom language (Bulgarian) but language definitions (as found in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using MyST Parser to produce both html and a
manual.pdf
for our docs (both from the same markdown sources).Is it possible for rinoh/PDF output to use a custom .ttf font? E.g. here is how I tweaked my
manual.rts
to use a custom font name.Unfortunately this font is not available on the github CI host so ChatGPT suggests to add this to
manual.rts
. . . pointing to repository local .ttf font file which is completely not working.
Is it possible to use custom .ttf fonts with rinohtype or the font has to be installed as system font on Ubuntu?
Is it possible to configure rinohtype to automatically download and use Google Fonts for unknown fonts?
Beta Was this translation helpful? Give feedback.
All reactions