Using custom fonts not working

0 votes
asked Mar 19, 2022 in Question / help by Sergei


I am trying to use custom fonts with

skinparam ObjectFontName Liberation Sans

skinparam ObjectFontSize 14

but running plantuml makes a lot of messages about fop not been able to find glyphs (document is in UTF-8) in default Helvetica like this

org.apache.fop.fonts.Typeface warnMissingGlyph
WARNING: Glyph 1080 (0x438, afii10074) not available in font Helvetica

I gathered that fop can not find 'Liberation Sans' which is available by fontconfig to all other applications by the way. I went to a fop.conf and added the font description

 <renderer mime="application/pdf">
       <directory recursive="true">/usr/share/fonts</directory>
       <font kerning="yes" embed-url="/usr/share/fonts/ttf/LiberationSans-Regular.ttf">
       <font-triplet name="Liberation Sans" style="normal" weight="normal"/>

But it still tries to stick 'Helvetica' in there. What do I have to do?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.