question

KalidasAliasVigneshParivallal-4038 avatar image
0 Votes"
KalidasAliasVigneshParivallal-4038 asked DanielZhang-MSFT edited

What do I do when C# code says that 'IDENTITY-H' is not recognized?

string fontpath = Environment.GetEnvironmentVariable("SystemRoot") + "\\fonts\\SaiVrishin";
BaseFont basefont = BaseFont.CreateFont(fontpath, BaseFont.IDENTITY_H, true);
iTextSharp.text.Font font = new iTextSharp.text.Font(basefont, 24, iTextSharp.text.Font.NORMAL,
iTextSharp.text.BaseColor.BLUE);
Paragraph pr1 = new Paragraph("¾í¸ ¿¨¸ «¼Á¡Éò¾¢ý §Àâø ¸¼ý Å¢ñ½ôÀõ", font);

not-supported
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Maybe you are not using the right version. Try the string "Identity-H" instead of BaseFont.IDENTITY_H or find the library that works.


0 Votes 0 ·

1 Answer

SimpleSamples avatar image
0 Votes"
SimpleSamples answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.