Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

WeighTAMatch

Determines how well two font descriptions match.

Declaration

Source position: agraphics.pas line 2409

function WeighTAMatch(

  reqTextAttr: pTextAttr;

  targetTextAttr: pTextAttr;

  targetTags: pTagItem

):SmallInt;

Arguments

reqTextAttr

  

The required textattr.

targetTextAttr

  

A textattr of potential match.

targetTags

  

Tags for the targetTextAttr.

Function result

A weight number which measures how well the TextAttrs match. The weight may vary from 0 (no match) to MAXFONTMATCHWEIGHT (perfect match).

Errors

Does not yet take tags into account.


Documentation generated on: 2021-07-30