Unit CastleWindowsFonts

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Windows-specific font utilities.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TWindowsFont A wrapper for CreateFont WinAPI function.

Functions and Procedures

function IsFontTrueType( Font: HFONT ): boolean;
procedure EnumFontCharsetsObj(const FontName: string; EnumProc : TEnumFontCharsetsProc_ByObject);
procedure EnumFontCharsets(const FontName: string; EnumProc : TEnumFontCharsetsProc);
function WinCharSetFromName(const Name: string): TWinCharSet;

Types

TWinCharSet = (...);
TEnumFontCharsetsProc_ByObject = procedure( FontCharset: byte ) of object;
TEnumFontCharsetsProc = procedure( FontCharset: byte );

Constants

CharSetsNames: array [TWinCharSet] of string=( 'ANSI_CHARSET', 'DEFAULT_CHARSET', 'SYMBOL_CHARSET', 'SHIFTJIS_CHARSET', 'HANGEUL_CHARSET', 'GB2312_CHARSET', 'CHINESEBIG5_CHARSET', 'OEM_CHARSET', 'HEBREW_CHARSET', 'ARABIC_CHARSET', 'GREEK_CHARSET', 'TURKISH_CHARSET', 'THAI_CHARSET', 'EASTEUROPE_CHARSET', 'RUSSIAN_CHARSET', 'BALTIC_CHARSET');

Description

Functions and Procedures

function IsFontTrueType( Font: HFONT ): boolean;

Is given Windows font possibly true-type.

procedure EnumFontCharsetsObj(const FontName: string; EnumProc : TEnumFontCharsetsProc_ByObject);

Enumerate charsets handled by given font. Warning: enumerated values may be repeated.

procedure EnumFontCharsets(const FontName: string; EnumProc : TEnumFontCharsetsProc);
 
function WinCharSetFromName(const Name: string): TWinCharSet;
 

Types

TWinCharSet = (...);

Windows font charset values. For each value csXxx below, WinAPI defines constant XXX_CHARSET. Useful for enumerating available charsets, displaying charset name etc.

Values
  • wcsANSI:  
  • wcsDEFAULT:  
  • wcsSYMBOL:  
  • wcsSHIFTJIS:  
  • wcsHANGEUL:  
  • wcsGB2312:  
  • wcsCHINESEBIG5:  
  • wcsOEM:  
  • wcsHEBREW:  
  • wcsARABIC:  
  • wcsGREEK:  
  • wcsTURKISH:  
  • wcsTHAI:  
  • wcsEASTEUROPE:  
  • wcsRUSSIAN:  
  • wcsBALTIC:  
TEnumFontCharsetsProc_ByObject = procedure( FontCharset: byte ) of object;
 
TEnumFontCharsetsProc = procedure( FontCharset: byte );
 

Constants

CharSetsNames: array [TWinCharSet] of string=( 'ANSI_CHARSET', 'DEFAULT_CHARSET', 'SYMBOL_CHARSET', 'SHIFTJIS_CHARSET', 'HANGEUL_CHARSET', 'GB2312_CHARSET', 'CHINESEBIG5_CHARSET', 'OEM_CHARSET', 'HEBREW_CHARSET', 'ARABIC_CHARSET', 'GREEK_CHARSET', 'TURKISH_CHARSET', 'THAI_CHARSET', 'EASTEUROPE_CHARSET', 'RUSSIAN_CHARSET', 'BALTIC_CHARSET');
 

Generated by PasDoc 0.13.0 on 2014-10-26 05:15:16