These instructions can't be complete as just adding AddFontToCache to OnCreate doesn't compile.
When I add WebLib.TMSFNCPDFLib to the uses list and code:
unit Unit3;
interface
uses
System.SysUtils, System.Classes, JS, Web, WEBLib.Graphics, WEBLib.Controls,
WEBLib.Forms, WEBLib.Dialogs, WebLib.TMSFNCPDFLib;
type
TForm3 = class(TWebForm)
procedure WebFormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form3: TForm3;
implementation
{$R *.dfm}
procedure TForm3.WebFormCreate(Sender: TObject);
begin
AddFontToCache('xxx.ttf');
end;
end.
The only error I get is the expected error:
GET http://localhost:8000/Project3/xxx.ttf 404 (Not Found)