Ignore:
Timestamp:
Jun 13, 2007, 8:31:36 PM (18 years ago)
Author:
RBRi
Message:

using StringUtilsUnit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Components/CanvasFontManager.pas

    r188 r210  
    55Uses
    66  OS2Def,
    7   Classes, Forms, PMWIN, Graphics;
     7  Classes,
     8  Forms,
     9  PMWIN,
     10  Graphics;
    811
    912Const
     
    137140  PmDev,
    138141  SysUtils,
    139   ACLStringUtility;
     142  StringUtilsUnit;
    140143
    141144Imports
     
    246249    Face := FontFaces[ FaceIndex ];
    247250
    248     if StringsSame( Face.pName^, Name ) then
     251    if StrEqualIgnoringCase( Face.pName^, Name ) then
    249252    begin
    250253      Result := Face;
     
    480483function SubstituteBitmapFontToOutline( const FaceName: string ): string;
    481484begin
    482   if StringsSame( FaceName, 'Helv' ) then
     485  if StrEqualIgnoringCase( FaceName, 'Helv' ) then
    483486    result := 'Helvetica'
    484   else if StringsSame( FaceName, 'Tms Rmn' ) then
     487  else if StrEqualIgnoringCase( FaceName, 'Tms Rmn' ) then
    485488    result := 'Times New Roman'
    486   else if StringsSame( FaceName, 'System Proportional' ) then
     489  else if StrEqualIgnoringCase( FaceName, 'System Proportional' ) then
    487490    result := 'Helvetica'
    488   else if StringsSame( FaceName, 'System Monospaced' ) then
     491  else if StrEqualIgnoringCase( FaceName, 'System Monospaced' ) then
    489492    result := 'Courier'
    490   else if StringsSame( FaceName, 'System VIO' ) then
     493  else if StrEqualIgnoringCase( FaceName, 'System VIO' ) then
    491494    result := 'Courier'
    492495  else
Note: See TracChangeset for help on using the changeset viewer.