Skip to content

Commit

Permalink
Remove Travis CI workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
DeinAlptraum committed Jul 29, 2024
1 parent 3101846 commit 4731e18
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/base/TextGL.pas
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ procedure LoadFontFamilyNames;
SetLength(FontFamilyNames, 0);
for FontNameIndex := 0 to FontSections.Count-1 do
begin
//if (Sections[FontNameIndex].StartsWith('Font_')) then // .StartsWith() does not compile on Travis-CI
if (LeftStr(FontSections[FontNameIndex], 5) = 'Font_') then
if (FontSections[FontNameIndex].StartsWith('Font_')) then
begin
SetLength(FontFamilyNames, Length(FontFamilyNames) + 1);
//FontFamilyNames[FontNameIndex] := FontIni.ReadString(Sections[FontNameIndex], 'Name', Sections[FontNameIndex].Remove(0, 5)); // .Remove() does not compile on Travis-CI
FontFamilyNames[FontNameIndex] := FontIni.ReadString(FontSections[FontNameIndex], 'Name', Copy(FontSections[FontNameIndex], 5));
FontFamilyNames[FontNameIndex] := FontIni.ReadString(FontSections[FontNameIndex], 'Name', FontSections[FontNameIndex].Remove(0, 5));
end;
end;

Expand Down

0 comments on commit 4731e18

Please sign in to comment.