Advertisement
WarPie90

OCR MultiFont

Dec 14th, 2013
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.51 KB | None | 0 0
  1. program New;
  2. {$I RML/RML.scar}
  3.  
  4. var
  5.   FontSet: Array of TChars;
  6.   i,t:Integer;
  7.   text:String;
  8. begin
  9.   SetLength(FontSet, 110);
  10.   for i:=0 to 109 do
  11.   begin
  12.     FontSet[i] := XT_LoadFont(AppPath +'Fonts\RSC\' + IntToStr(i));
  13.   end;                          
  14.   t := GetTimeRunning;
  15.    //Start bellow upper-left white line corner - End at lower right white line corner
  16.   Text := XT_GetTextAtEx(Box(144,297,398,335), FontSet, 1, 100, [clWhite], 1,75,1,'');
  17.   WriteLn(GetTimeRunning - t);
  18.   WriteLn(Text);
  19. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement