mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-25 10:42:20 -05:00
Add LoadFont and FreeFont
This commit is contained in:
parent
204ae425c0
commit
e2712ad9a7
@ -52,3 +52,15 @@ function ps_LoadSystemFont(const SysFont : TFont; const FontName : string) : boo
|
||||
begin
|
||||
result := CurrThread.Client.MOCR.Fonts.LoadSystemFont(SysFont,FontName);
|
||||
end;
|
||||
|
||||
function ps_LoadFont(const FontName: string; shadow: boolean): boolean; extdecl;
|
||||
begin
|
||||
result := CurrThread.Client.MOCR.Fonts.LoadFont(FontName, shadow);
|
||||
end;
|
||||
|
||||
function ps_FreeFont(const FontName: string): boolean; extdecl;
|
||||
begin
|
||||
result := CurrThread.Client.MOCR.Fonts.FreeFont(FontName);
|
||||
end;
|
||||
|
||||
|
||||
|
@ -253,6 +253,8 @@ AddFunction(@ps_getTextAtEx,'function GetTextAtEx(const xs,ys,xe,ye, minvspacing
|
||||
AddFunction(@ps_GetTextAtEx,'function GetTextAtExWrap(const xs,ys,xe,ye, minvspacing, maxvspacing, hspacing,color, tol: integer;const font: string): string;');
|
||||
AddFunction(@ps_gettextATPA,'function GetTextATPA(const ATPA : T2DPointArray; const maxvspacing : integer; const font : string): string;');
|
||||
AddFunction(@ps_LoadSystemFont,'function LoadSystemFont(const SysFont : TFont; const FontName : string) : boolean;');
|
||||
AddFunction(@ps_LoadFont, 'function LoadFont(const FontName: string; shadow: boolean): boolean;');
|
||||
AddFunction(@ps_FreeFont, 'function FreeFont(const FontName: string): boolean;');
|
||||
|
||||
{Bitmaps}
|
||||
SetCurrSection('Bitmaps');
|
||||
|
Loading…
Reference in New Issue
Block a user