Private static Font Tr圜reateFont(string fontDir, string file) _fontSelector.AddFont(TraditionalArabic) Simhei = Tr圜reateFontEmbedded(fontDir, "simhei.ttf") //!-! Simpbdo = Tr圜reateFontEmbedded(fontDir, "simpbdo.ttf") //!-! Simsun = Tr圜reateFontEmbedded(fontDir, "simsun.ttc,1") //!-!ĪrialUni = Tr圜reateFontEmbedded(fontDir, "arialuni.ttf") //!-! Simpo = Tr圜reateFontEmbedded(fontDir, "simpo.ttc") //!-!īatang = Tr圜reateFontEmbedded(fontDir, "batang.ttc") //!-! Tahoma = Tr圜reateFontEmbedded(fontDir, "tahoma.ttf") TraditionalArabic = Tr圜reateFont(fontDir,"trado.ttf") SimplifiedArabic = Tr圜reateFont(fontDir,"simpo.ttf") Īndalus = Tr圜reateFont(fontDir,"andlso.ttf") String fontDir = winDir "\\Fonts\\" //!-!Īrial = Tr圜reateFont(fontDir, "arial.ttf") String winDir = Environment.GetEnvironmentVariable("WINDIR") //!-! Should I choose different font for bold? And how? const int fontSizeforSelector = 12 I don't understand chinese fonts too much, but I suppose that there is no bold font in simsun.ttc and the simhei.ttf could be choose for bold font instead (correct me if I am wrong). But the font selector does not have parametres for bold. I would like to use iTextSharp FontSelector, but I expect that the correct font could be different for bold and normal font. When printing PDF on windows, I need to choose font according to characters in the text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |