Print Page | Close Window

AddSubsettedFont and SetTableCellContent

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1167
Printed Date: 16 Dec 25 at 7:02AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: AddSubsettedFont and SetTableCellContent
Posted By: Slawek
Subject: AddSubsettedFont and SetTableCellContent
Date Posted: 05 Aug 09 at 1:31PM
I have problem with polish characters. When I do:

S := 'szła poszła';
SelectFont(AddSubsettedFont('Tahoma', 16, S)); 
SetMeasurementUnits(2);
DrawText (0.2, 1, GetSubsetString (S));

it's ok, but when I insert text to cell I don't see good characters

aId := CreateTable(5, 5 );
SetMeasurementUnits(2);
  SetTableRowHeight(aId, 1, 5, 0.5);
  SetTableCellBorderWidth(aId, 1, 1, 5, 5, 0, 0.01);
  SetTableColumnWidth(aId, 1, 5, 1);
  SelectFont(AddSubsettedFont('Tahoma', 16, S)); 
  SetTableCellContent(aId, 1, 1, GetSubsetString (S));
  DrawTableRows(aId, 0.2, PageHeight - 0.2, PageHeight - 0.4, 1, 0);

AddSubsettedFont works with SetTableCellContent?




Replies:
Posted By: Slawek
Date Posted: 06 Aug 09 at 7:08AM
afontid := AddTrueTypeFont('Verdana {1250}', 1);
SelectFont(afontid); //for texts
SetHTMLNormalFont('Default', afontid); //for table



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk