Tab (\t) using FormattedTextArea

Tab (\t) using FormattedTextArea

Forum member · Jun 27, 2007
When I generate a document using FormattedTextArea with a string containing '\t' characters, my PDF document displays with boxes instead of tab characters. Other than replacing the '\t' characters with a string of 5 or 8 spaces, is there some way to have FormattedTextArea properly interpret the tab characters? FYI: FormattedTextArea seems to properly handle \r and \n. Chuck H

Re: Tab (\t) using FormattedTextArea

Support · Jun 27, 2007
Hello Chuck, What font are you using when you are seeing this behavior? I just tried this using a couple different fonts and everything worked correctly. There could be an issue within a particular font you are using...not sure. Let me know this and we can look into this further. Thanks, ceTe Software Support Team

Re: Tab (\t) using FormattedTextArea

Forum member · Jun 28, 2007
We are using ArialN public static ceTe.DynamicPDF.Text.TrueTypeFont ttArialN = new ceTe.DynamicPDF.Text.TrueTypeFont(@"c:\Winnt\fonts\Arialn.ttf"); public static ceTe.DynamicPDF.FontFamily ffArialN = new FontFamily("ArialN",ttArialN,ttArialNBold,null,null); ... hText = new FormattedTextArea(str,70,270,430,10,Ft.Fonts.ArialN10); Thanks for quick response Chuck H

Re: Tab (\t) using FormattedTextArea

Support · Jun 28, 2007
Hello Chuck, Can you please send over the true type font and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can try to recreate the bahavior and try to find out the cause for the behavior to occur. Thanks, ceTe Software Support Team.

Re: Tab (\t) using FormattedTextArea

Forum member · Jun 28, 2007
I just tried a standard Roman font instead of the ArialN font and it seems to work fine. Do you know of a Arial Narrow font file that would work? Thanks Chuck H

Re: Tab (\t) using FormattedTextArea

Support · Jun 28, 2007
Hello Chuck, We were able to recreate the behavior. This issue will be addressed in a future version. The work around to this is to use String.Replace() method and replace every (\t) entry in your string with an empty space. Thanks, ceTe Software Support Team