[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'agraphics' (#aros)

WeighTAMatch

Determines how well two font descriptions match.

Declaration

Source position: agraphics.pas line 2183

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: 2017-01-10