Determines how well two font descriptions match.
Source position: agraphics.pas line 2109
function WeighTAMatch( |
ReqTextAttr: PTTextAttr; |
TargetTextAttr: PTextAttr; |
TargetTags: PTagItem |
):LongInt; |
ReqTextAttr |
|
The required textattr. |
TargetTextAttr |
|
A textattr of potential match. |
TargetTags |
|
Tags for the targetTextAttr. |
A weight number which measures how well the TextAttrs match. The weight may vary from 0 (no match) to MAXFONTMATCHWEIGHT (perfect match).
Does not yet take tags into account.