Open GoogleCodeExporter opened 9 years ago
It is possible to tell UMLet to set the font for the pdf-export.
You must add the following line to your umlet.cfg (at the moment there is no
way to set it via the UMLet GUI):
pdf_export_font = c:/windows/fonts/msgothic.ttc,1
If you want to use another font, please change "c:/windows/fonts/msgothic.ttc"
to the desired font-location. In your case you must use an UTF-8 font to make
sure the characters appear.
Original comment by AFDiaX
on 13 Aug 2012 at 5:54
Thanks,
I've updated to 11.5.1 and change pdf_export_font to
/usr/share/fonts/droid/DroidSans.ttf
But what is 1 after font path meaning?(On linux it doesn't work)
Original comment by KultiH...@gmail.com
on 13 Aug 2012 at 6:48
To be honest, I don't know.
It's from the examples of iText (the pdf export library we use):
http://itextpdf.com/examples/iia.php?id=271
and it doesn't work without ",1" ;)
Original comment by AFDiaX
on 13 Aug 2012 at 7:00
Sorry, I mean on Linux it's work for me only without 1. It's happened, because
DroidSans has only one font.
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/BaseFont.html#createFont(jav
a.lang.String, java.lang.String, boolean)
"Fonts in TrueType collections are addressed by index such as "msgothic.ttc,1".
This would get the second font (indexes start at 0), in this case "MS PGothic"."
Original comment by KultiH...@gmail.com
on 13 Aug 2012 at 7:26
unfortunately font styles (bold, italic) don't work with embedded font (see
Issue 195)
Original comment by AFDiaX
on 3 Oct 2014 at 2:12
Original issue reported on code.google.com by
KultiH...@gmail.com
on 8 Sep 2011 at 7:34Attachments: