HtmlTextAreaStyle - FontFamily

HtmlTextAreaStyle - FontFamily

Forum member · Apr 11, 2007
I'm having trouble using TextAlign.Justify and an Arial FontFamily with the HtmlTextArea. If I use the Helvetica fontfamily, the textarea is justified left and right. If I use the Arial fontfamily, the text is left justified. This is the code: Public FontR As ceTe.DynamicPDF.Text.TrueTypeFont = New ceTe.DynamicPDF.Text.TrueTypeFont("ARIAL.TTF") Public FontB As ceTe.DynamicPDF.Text.TrueTypeFont = New ceTe.DynamicPDF.Text.TrueTypeFont("ARIALBD.TTF") Public FontI As ceTe.DynamicPDF.Text.TrueTypeFont = New ceTe.DynamicPDF.Text.TrueTypeFont("ARIALI.TTF") Public FontBI As ceTe.DynamicPDF.Text.TrueTypeFont = New ceTe.DynamicPDF.Text.TrueTypeFont("ARIALBI.TTF") Public FontFam As FontFamily = New FontFamily("Arial", FontR, FontB, FontI, FontBI) ... Dim Style As HtmlTextAreaStyle = New HtmlTextAreaStyle(FontFam, 8, False) Style.Paragraph.SpacingAfter = 8.5 Style.Paragraph.Align = TextAlign.Justify Dim ta As New HtmlTextArea(cText, nX, nY, nW, nH, Style) ta.FontFaces.Add(oPS.FontFam) Pg.Elements.Add(ta)

Re: HtmlTextAreaStyle - FontFamily

Support · Apr 11, 2007
Hello, We are able to recreate the behavior you mentioned. I will forward this over to the developers and we will post a message as soon as we have some updates. Thanks, ceTe Software Support Team