Hi I'm trying to figure out why a PDF created using Korean characters outputs all question marks. On my local install (OSX) it works but on our server (CentOS 6.7) all I see is ???. I'm assuming I'm missing fonts? I tried yum groupinstall "Korean Support" but that didn't seem to fix it.
Forum › How do I...?
Korean characters
Perhaps Korean fonts on CentOS have a different package name, I will check this and get back to you.
It appears that we do not currently list Korean fonts in /usr/lib/prince/style/fonts.css. You can fix this by adding a @font-face rule like this:
This will tell Prince to fallback to the UnBatang font when glyphs cannot be found in other fonts. We will update fonts.css to include rules for Korean fonts in a future release of Prince, sorry for the inconvenience.
@font-face {
font-family: serif;
src: prince-lookup("UnBatang")
}
This will tell Prince to fallback to the UnBatang font when glyphs cannot be found in other fonts. We will update fonts.css to include rules for Korean fonts in a future release of Prince, sorry for the inconvenience.
Thanks! Got it to work but I had to modify it to this (Prince v9);
@font-face {
font-family: serif;
src: local("UnBatang")
}
Edited by spjonez
Hi I have a similar issue where it doesn't work locally. I've checked /usr/lib/prince/style/fonts.css and see that it has
And I checked in Font Book to see this is enabled, but when I create the Prince PDF I just get ?s everywhere. I have v11.
@font-face {
font-family: serif;
src: prince-lookup("AppleMyungjo") /* Korean */
}
And I checked in Font Book to see this is enabled, but when I create the Prince PDF I just get ?s everywhere. I have v11.
If you run Prince on your document with the --debug option it should print a long list of enumerated font families to the console, does AppleMyungjo show up there?