We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bold Text in Table

I am using XML to generate a PDF. I need to have bold text in some of the cells of a table using Microsoft Sans Serif font. How can I do this?

Please take follow xml block as an example.



<Segment FontName="Sans Serif Bold" IsTrueTypeFontBold="true" FontSize="10.5">Cell String

But first of all, you must already installed Sans Serif Bold font in system.

Currently Aspose.PDF renders letters depending on installed fonts. If expected font is not installed, Aspose.PDF has to use default font New Times Roman instead.

We are trying to remove this limit at the end of this month.

We do not have Sans Serif Bold installed. So I changed to Arial Bold, which is installed and is standard for Windows. It is showing the default font, Times Roman; as if it can't find Arial Bold. I've tried both "Arial Bold" and "Arial-Bold". It isn't recognizing either.

I tried the following xml block and got a correct result.



<Segment FontName="Arial" IsTrueTypeFontBold="true" FontSize="10.5">Cell String

Please try again and tell me your result.