We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Font stretch

Is it possible to setup font stretch (increase or decrease spaces between letters)?

Thanks

8 Replies

KK Karthik Krishnaraj Syncfusion Team March 25, 2015 01:42 PM UTC

Hi matrostik ,

Yes it is possible to Stretch the fonts (increase or decrease the space between the characters), for this you need to make use of CharacterSpacing Property in PdfStringFormat class. I have attached a simple sample regarding this scenario, can you please check with this and let me know if these helps.

Sample Link:
http://www.syncfusion.com/downloads/support/directtrac/137070/FontStretch2144540965.zip

Thanks,

Karthik.



MA matrostik March 26, 2015 07:23 AM UTC

Thank you.

And what about justify?


Thanks


KK Karthik Krishnaraj Syncfusion Team March 27, 2015 02:06 PM UTC

Hi matrostik,

Thank you for your update,

It is possible to justify the text using Alignment property of PdfStringFormat class. I have attached a simple sample which demonstrates this, can you please check with this and let us know if these helps.

Sample Link:

http://www.syncfusion.com/downloads/support/directtrac/135426/Justify2070003779.zip

Thanks,

Karthik.



MA matrostik March 27, 2015 06:07 PM UTC

Thanks already found it by my self


MA matrostik March 28, 2015 08:16 AM UTC

Is there a simple way to draw regular and bold text on the same line?

Thanks


KK Karthik Krishnaraj Syncfusion Team March 30, 2015 10:52 AM UTC

Hi Matrostik,

Yes, It is possible to draw “Regular and bold text on the same line” by using PdfHTMLTextElement class, this helps us to render HTML string in a Pdf Document. I have attached a simple sample and online document regarding this in the below link, can you please check with this and let us know if these helps.

Sample Link:

http://www.syncfusion.com/downloads/support/directtrac/137190/Font_style311872371.zip

Online Documentation Link:

http://help.syncfusion.com/ug/js/default.htm#!documents/htmlstyledtext.htm

Thanks,

Karthik.



MA matrostik May 27, 2015 10:41 AM UTC

Hello,
its not exist in WinRT


KK Karthik Krishnaraj Syncfusion Team May 28, 2015 02:43 PM UTC

Hi Matrostik,

Sorry for the inconvenience,

PdfHtmlTextElement class is not supported in WinRt Platform, I have attached a simple work around sample using PdfTextElement class which helps to get the bounds of the rendered text, by using the bounds we can able to draw the proceeding text. Please check with this sample and let us know if these helps.

Sample Link:

http://www.syncfusion.com/downloads/support/directtrac/138337/ze/SinlgeLineText-1250845682

Thanks,

Karthik.


Loader.
Up arrow icon