Hi Christian and other DynaPDFMBS experts.
Ive gotten my pdf making working well on the Mac web app.
Of course loading it to the LINUX server I encounter font issues.
I’ve found a couple of commands (below) but I’m a bit lost on how to use them.
Is there an examples somewhere to help?
if TargetLinux then
call pdf.AddFontSearchPath "/fonts", true
call pdf.LoadFontEx("/fonts", 1, 10, true)
else
// on Mac and Windows we use system fonts.
end if
Hi Christian
I tried to use a build folder under the CGI folder called fonts where I put my own fonts, and then try and direct it from there. Maybe the path should have been… “…/fonts”. Maybe a bit naive…
But Ill try Oliver’s path
[quote=437704:@James Nicholson-Plank]Hi Christian
I tried to use a build folder under the CGI folder called fonts where I put my own fonts, and then try and direct it from there. Maybe the path should have been… “…/fonts”. Maybe a bit naive…
But Ill try Oliver’s path[/quote]
If you use a CopyFiles step the right way, you can use SpecialFolder.Resources.
Hi Tim
never played with resources folder path before.
How do I load files to Resource Folder using the copyFiles ?.
I used CopyFiles to upload the Fonts folder and fonts. It’s a drag and drop thing, so not sure how I ask files to go to a specific place?
Excuse my ignorance in this area.
Thanks
With the CopyFiles step selected in the navigator, the inspector offers you a few settings one of them is “Destination”. Select “Resources Folder” as the destination, and the items in the copy files step are accessible with SpecialFolder.Resources (if you have a newer Xojo - if you have an older one you can use TPSF)