jamesoliverband / umlet

Automatically exported from code.google.com/p/umlet
0 stars 0 forks source link

Russian text hide after export as pdf #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce
1. Create any diagram with russian text
2. Export it as pdf

Expected: Correct PDF
Instead: PDF without russian text

UMLet version: 11.3
OS: Gentoo Linux or Windows 7
Java: jre update 23(on windows), jre from ibm on linux

I attached sample uxf-file to reproduce this issue

Original issue reported on code.google.com by KultiH...@gmail.com on 8 Sep 2011 at 7:34

Attachments:

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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