Traditional Chinese how to set bold font.

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for COM/ActiveX (v5)  /  Re: Traditional Chinese how to set bold font.

DynamicPDF Generator for COM/ActiveX (v5) Forum

Traditional Chinese how to set bold font.
Please provide examples ,THANKS YOU
Posted by a ceTe Software moderator
Hello,

You will have to use the true type or open type font which can add bold Chinese text. You can use the OpenTypeFont class for adding the fonts. You can refer to the Open Type Fonts topic on our help documentation.

Thanks,
ceTe Software Support Team.
Hi guys, we've got a similar issue. We're trying to import (AddFont) an Arial Unicode to show the Chinese font. But this seems not working: if we "Response.Write" the new added font, we have the value 23, the value of your last embedded Chinese font.

Our Arial Unicode is 22MB and we're running on a Windows 2008 platform.

Do you know if there are settings to change in Windows to make this working? On our Windows 2003 Server everything was working well...

Thanks a lot,
Simone
Posted by a ceTe Software moderator
Hello Simone,

Are you getting an error on Win 2008 machine when you use the AddFont method? If so please post the full exception message.  How are you accessing the font file in the AddFont method? Are you giving the full path of the file to the AddFont method? Please post the code where you are add the font as well.


Thanks,
ceTe Software Support Team.
No, unfortunately no error messages are showed.

To embed the font I'm just using this code
ALight = Catalogo.AddFont( Server.MapPath("static\font\ARIALUNI.TTF") )

and I'm using this
Set txa = MyGroup.AddTextArea (text, 0, 0, 5, 10, DPDF_Align_Left, ALight, fontSizeValue, Catalogo.Colors.GetCmykColor(0,0,0,1) )
to add it to the PDF.


After the AddFont code, if I use
Response.Write(ALight)
the system print 23, the font value for the last of your chinese embedded fonts.

Thanks for your help,
Simone
Posted by a ceTe Software moderator
Hello Simone,

Try this line of code after the AddFont to see if the font file is being accessed or not.

Response.Write(Server.MapPath("static\font\ARIALUNI.TTF"))
 

Thanks,
ceTe Software Support Team.
Yes, sorry. I made this test as I made the test for
FileSystem.FileExists()
Please, let me know,
Simone
Posted by a ceTe Software moderator
Hello Simone,

Try using the full path in the AddFont method. for example
MyFont = MyDocument.AddFont( "C:\Windows\Fonts\arial.otf" )

Also make sure your web application has necessary permissions to access the fonts folder.

Thanks,
ceTe Software Support Team.
Everything is working correctly. The font is 20MB and I'm thinking this is the issue. Could it be?
Do you have settings to make this working on W2008?!
Posted by a ceTe Software moderator
Hello,

The size of the font file is not the issue. There are no additional setting for windows 2008, other than making sure that the web application has necessary permissions on the font files. Have you tried to use a different font file to see if it works? Does the output document get generated at all? If so what do you see in the output document for the label with which this font is supposed to be added?

Thanks,
ceTe Software Support Team
Hello,

The size of the font file is not the issue. There are no additional setting for windows 2008, other than making sure that the web application has necessary permissions on the font files. Have you tried to use a different font file to see if it works? Does the output document get generated at all? If so what do you see in the output document for the label with which this font is supposed to be added?

Thanks,
ceTe Software Support Team


Hello Support!
The permission settings are correct. In the same folder (static/fonts) we have another font that we use in the same PDF and that font is perfectly working.
The PDF is generated but in the place of text you can see the classical "squares" that indicate that the font is missing.
In PDF properties the font is not listed.
Posted by a ceTe Software moderator
Hello,

There is nothing in our product which is causing this behavior. You can add any TTF, OTF,Type1 fonts without any problem using our DynamicPDF product. Please make sure that you are using the fonts which has support for the text and characters you are using. If you are still having problems, please email Support Team the font file and the sample code, so we can look into it further.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 8:20 AM.