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

WeighTAMatch

Determines how well two font descriptions match.

Declaration

Source position: agraphics.pas line 2109

function WeighTAMatch(

  ReqTextAttr: PTTextAttr;

  TargetTextAttr: PTextAttr;

  TargetTags: PTagItem

):LongInt;

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