FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TFlexCelImport.GetFontList Method

Returns the font definition for a given font index. (0 based)

Pascal
procedure GetFontList(const index: integer; var F: TFlxFont);
C++
__fastcall GetFontList(const int index, TFlxFont F);
Parameters 
Description 
const index: integer 
Index in the Font list (0 based). 
var F: TFlxFont 
Variable where the font definition will be returned. 

You will normally not need this method, but it could be used together with FontListCount and AddFont to manage the fonts on a file on a low level way. 

 

For example, if you wanted to change all the fonts on a file from Arial to Times New Roman, you could iterate over this FontList and change them with SetFontList

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!