Determines how well two font descriptions match.
Source position: agraphics.pas line 2409
function WeighTAMatch( |
reqTextAttr: pTextAttr; |
targetTextAttr: pTextAttr; |
targetTags: pTagItem |
):SmallInt; |
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.