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.
Unfortunately, activation email could not send to your email. Please try again.

Font stretch

Thread ID:

Created:

Updated:

Platform:

Replies:

118609 Mar 24,2015 03:51 AM May 28,2015 10:43 AM WinRT 8
loading
Tags: PDF
matrostik
Asked On March 24, 2015 03:51 AM

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

Thanks

Karthik Krishnaraj [Syncfusion]
Replied On March 25, 2015 09:42 AM

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.


matrostik
Replied On March 26, 2015 03:23 AM

Thank you.

And what about justify?


Thanks

Karthik Krishnaraj [Syncfusion]
Replied On March 27, 2015 10:06 AM

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.


matrostik
Replied On March 27, 2015 02:07 PM

Thanks already found it by my self

matrostik
Replied On March 28, 2015 04:16 AM

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

Thanks

Karthik Krishnaraj [Syncfusion]
Replied On March 30, 2015 06:52 AM

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.


matrostik
Replied On May 27, 2015 06:41 AM

Hello,
its not exist in WinRT

Karthik Krishnaraj [Syncfusion]
Replied On May 28, 2015 10:43 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;