I use this method to convert TFont.Pitch
into an Integer
value:
var
ThisPitch: Integer;
case Font.Pitch of
TFontPitch.fpDefault: ThisPitch := 0;
TFontPitch.fpVariable: ThisPitch := 1;
TFontPitch.fpFixed: ThisPitch := 2;
end;
Is there a simpler method to convert TFont.Pitch
into an Integer
value?