Class tfont

Unit

Declaration

type tfont = class(tlinkedoptionalpersistent, icanvas)

Description

This item has no description.

Hierarchy

Overview

Fields

Protected finfo: fontinfoty;
Protected fhandlepo: ˆfontnumty;

Methods

Protected procedure dochanged(const changed: canvasstatesty; const nochange: boolean); virtual;
Protected function getfont(var drawinfo: drawinfoty): boolean; virtual;
Protected procedure setname(const Value: string); virtual;
Protected function gethandle: fontnumty; virtual;
Protected function getdatapo: pfontdataty;
Protected procedure assignproperties(const source: tfont; const ahandles: boolean); virtual;
Protected procedure defineproperties(filer: tfiler); override;
Protected procedure settemplateinfo(const ainfo: basefontinfoty);
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
Protected function isheightstored(): boolean;
Protected function iswidthstored(): boolean;
Protected function isextraspacestored(): boolean;
Protected function isnamestored(): boolean;
Protected function ischarsetstored(): boolean;
Protected function isoptionsstored(): boolean;
Public constructor create; override;
Public destructor destroy; override;
Public procedure assign(source: tpersistent); override;
Public procedure scale(const ascale: real); virtual;
Public function gethandleforcanvas(const canvas: tcanvas): fontnumty;

Properties

Protected property rotation: real read getrotation write setrotation;
Public property handle: fontnumty read gethandle;
Public property ascent: integer read getascent;
Public property descent: integer read getdescent;
Public property glyphheight: integer read getglyphheight;
Public property lineheight: integer read getlineheight;
Public property linewidth: integer read getlinewidth;
Public property caretshift: integer read getcaretshift;
Public property onchange: notifyeventty read fonchange write fonchange;
Public property bold: boolean read getbold write setbold;
Public property italic: boolean read getitalic write setitalic;
Public property underline: boolean read getunderline write setunderline;
Public property strikeout: boolean read getstrikeout write setstrikeout;
Public property heightflo: flo64 read getheightflo write setheightflo;
Published property color: colorty read getcolor write setcolor stored iscolorstored default cl_default;
Published property colorbackground: colorty read getcolorbackground write setcolorbackground stored iscolorbackgroundstored default cl_default;
Published property colorselect: colorty read getcolorselect write setcolorselect stored iscolorselectstored default cl_default;
Published property colorselectbackground: colorty read getcolorselectbackground write setcolorselectbackground stored iscolorselectbackgroundstored default cl_default;
Published property shadow_color: colorty read getshadow_color write setshadow_color stored isshadow_colorstored default cl_none;
Published property shadow_shiftx: integer read getshadow_shiftx write setshadow_shiftx stored isshadow_shiftxstored default 1;
Published property shadow_shifty: integer read getshadow_shifty write setshadow_shifty stored isshadow_shiftystored default 1;
Published property gloss_color: colorty read getgloss_color write setgloss_color stored isgloss_colorstored default cl_none;
Published property gloss_shiftx: integer read getgloss_shiftx write setgloss_shiftx stored isgloss_shiftxstored default -1;
Published property gloss_shifty: integer read getgloss_shifty write setgloss_shifty stored isgloss_shiftystored default -1;
Published property grayed_color: colorty read getgrayed_color write setgrayed_color stored isgrayed_colorstored default cl_default;
Published property grayed_colorshadow: colorty read getgrayed_colorshadow write setgrayed_colorshadow stored isgrayed_colorshadowstored default cl_default;
Published property grayed_shiftx: integer read getgrayed_shiftx write setgrayed_shiftx stored isgrayed_shiftxstored default 1;
Published property grayed_shifty: integer read getgrayed_shifty write setgrayed_shifty stored isgrayed_shiftystored default 1;
Published property height: integer read getheight write setheight stored isheightstored default 0;
Published property width: integer read getwidth write setwidth stored iswidthstored default 0;
Published property extraspace: integer read getextraspace write setextraspace stored isextraspacestored default 0;
Published property style: fontstylesty read getstyle write setstyle stored isstylestored default [];
Published property name: string read getname write setname stored isnamestored;
Published property charset: string read getcharset write setcharset stored ischarsetstored;
Published property options: fontoptionsty read getoptions write setoptions stored isoptionsstored default [];
Published property xscale: real read getxscale write setxscale stored isxscalestored;
Published property localprops: fontlocalpropsty read flocalprops write setlocalprops;
Published property template: tfontcomp read ftemplate write settemplate;

Description

Fields

Protected finfo: fontinfoty;

This item has no description.

Protected fhandlepo: ˆfontnumty;

This item has no description.

Methods

Protected procedure dochanged(const changed: canvasstatesty; const nochange: boolean); virtual;

This item has no description.

Protected function getfont(var drawinfo: drawinfoty): boolean; virtual;

This item has no description.

Protected procedure setname(const Value: string); virtual;

This item has no description.

Protected function gethandle: fontnumty; virtual;

This item has no description.

Protected function getdatapo: pfontdataty;

This item has no description.

Protected procedure assignproperties(const source: tfont; const ahandles: boolean); virtual;

This item has no description.

Protected procedure defineproperties(filer: tfiler); override;

This item has no description.

Protected procedure settemplateinfo(const ainfo: basefontinfoty);

This item has no description.

Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;

This item has no description.

Protected function isheightstored(): boolean;

This item has no description.

Protected function iswidthstored(): boolean;

This item has no description.

Protected function isextraspacestored(): boolean;

This item has no description.

Protected function isnamestored(): boolean;

This item has no description.

Protected function ischarsetstored(): boolean;

This item has no description.

Protected function isoptionsstored(): boolean;

This item has no description.

Public constructor create; override;

This item has no description.

Public destructor destroy; override;

This item has no description.

Public procedure assign(source: tpersistent); override;

This item has no description.

Public procedure scale(const ascale: real); virtual;

This item has no description.

Public function gethandleforcanvas(const canvas: tcanvas): fontnumty;

This item has no description.

Properties

Protected property rotation: real read getrotation write setrotation;

This item has no description.

Public property handle: fontnumty read gethandle;

This item has no description.

Public property ascent: integer read getascent;

This item has no description.

Public property descent: integer read getdescent;

This item has no description.

Public property glyphheight: integer read getglyphheight;

This item has no description.

Public property lineheight: integer read getlineheight;

This item has no description.

Public property linewidth: integer read getlinewidth;

This item has no description.

Public property caretshift: integer read getcaretshift;

This item has no description.

Public property onchange: notifyeventty read fonchange write fonchange;

This item has no description.

Public property bold: boolean read getbold write setbold;

This item has no description.

Public property italic: boolean read getitalic write setitalic;

This item has no description.

Public property underline: boolean read getunderline write setunderline;

This item has no description.

Public property strikeout: boolean read getstrikeout write setstrikeout;

This item has no description.

Public property heightflo: flo64 read getheightflo write setheightflo;

This item has no description.

Published property color: colorty read getcolor write setcolor stored iscolorstored default cl_default;

This item has no description.

Published property colorbackground: colorty read getcolorbackground write setcolorbackground stored iscolorbackgroundstored default cl_default;

Fill color of the glyph cells, not including extraspace. Ignored (forced to transparent) while shadow_color or gloss_color is not cl_none.

Published property colorselect: colorty read getcolorselect write setcolorselect stored iscolorselectstored default cl_default;

This item has no description.

Published property colorselectbackground: colorty read getcolorselectbackground write setcolorselectbackground stored iscolorselectbackgroundstored default cl_default;

This item has no description.

Published property shadow_color: colorty read getshadow_color write setshadow_color stored isshadow_colorstored default cl_none;

Color of the glyph shadow, drawn offset by shadow_shiftx and shadow_shifty. When not cl_none, the text is drawn in two passes (shadow, then glyph) and colorbackground is ignored.

Published property shadow_shiftx: integer read getshadow_shiftx write setshadow_shiftx stored isshadow_shiftxstored default 1;

This item has no description.

Published property shadow_shifty: integer read getshadow_shifty write setshadow_shifty stored isshadow_shiftystored default 1;

This item has no description.

Published property gloss_color: colorty read getgloss_color write setgloss_color stored isgloss_colorstored default cl_none;

This item has no description.

Published property gloss_shiftx: integer read getgloss_shiftx write setgloss_shiftx stored isgloss_shiftxstored default -1;

This item has no description.

Published property gloss_shifty: integer read getgloss_shifty write setgloss_shifty stored isgloss_shiftystored default -1;

This item has no description.

Published property grayed_color: colorty read getgrayed_color write setgrayed_color stored isgrayed_colorstored default cl_default;

This item has no description.

Published property grayed_colorshadow: colorty read getgrayed_colorshadow write setgrayed_colorshadow stored isgrayed_colorshadowstored default cl_default;

This item has no description.

Published property grayed_shiftx: integer read getgrayed_shiftx write setgrayed_shiftx stored isgrayed_shiftxstored default 1;

This item has no description.

Published property grayed_shifty: integer read getgrayed_shifty write setgrayed_shifty stored isgrayed_shiftystored default 1;

This item has no description.

Published property height: integer read getheight write setheight stored isheightstored default 0;

This item has no description.

Published property width: integer read getwidth write setwidth stored iswidthstored default 0;

This item has no description.

Published property extraspace: integer read getextraspace write setextraspace stored isextraspacestored default 0;

Vertical space, in pixels, between the glyph cells of adjacent text rows. Negative values cause the cells to overlap.

Published property style: fontstylesty read getstyle write setstyle stored isstylestored default [];

This item has no description.

Published property name: string read getname write setname stored isnamestored;

This item has no description.

Published property charset: string read getcharset write setcharset stored ischarsetstored;

Changes the font to the nearest one containing the given encoding. No change is made if no font matches the requested encoding. Do not set this away from its default (iso10646, i.e. Unicode) in normal use: MSEgui's internal text representation is UCS2, and iso10646 is the only encoding compatible with it.

Published property options: fontoptionsty read getoptions write setoptions stored isoptionsstored default [];

Selects the font by category rather than by name: foo_helvetica (sans), foo_roman (serif), foo_script and foo_decorative choose the nearest font in that category; foo_fixed/foo_proportional choose the nearest mono/proportionally spaced font. A foo_* selection overrides one made with name; if it fails, the nearest sans font is used. foo_antialiased/foo_nonantialiased are Linux-only and toggle Xft antialiasing.

Published property xscale: real read getxscale write setxscale stored isxscalestored;

This item has no description.

Published property localprops: fontlocalpropsty read flocalprops write setlocalprops;

This item has no description.

Published property template: tfontcomp read ftemplate write settemplate;

This item has no description.


Generated by PasDoc 1.0.4.