Using custom fonts in application

Just use a version prior to 2017R1, or wait for 2017R2.

The info.plist method would seem to work for both.
But temporary availability isnt any good to me because it wont work with DynaPDFMBS.
Permanent installation works though.

Temporary used to work throughout pre-2017, right ?

I dont have 2017.

‘Temporary’ works for Xojo windows & controls, and for printing purposes in pre-2017

‘Temporary’ doesnt play nice with DynaPDFMBS in 2016, 2015 or 2013 codebase: DynaPDFMBS reports the font cant be found.
Same exact code works if the font is installed in a Fonts folder.

Strange that Christian did not spot the issue before.

You know you don’t need to go through the fonts folder to activate a font systemwide. FontActivateMBS can activate local only, or systemwide. What if you used a small launcher helper that activates the font systemwide, then starts your app. So the app containing DynaPDF finds the font available and is happy. The app itself can deactivate the font when it closes.

It would be a lot less involved than to actually install the font.

THATS a good idea… Maybe the DynaPDF presents as a ‘different application’ so doesnt see it if activated locally?
I’ll go test…

(later) … didnt work. But it was worth a try.
I’ll just install the font.

For DynaPDF you need to call AddFontSearchPath passing the font file (or folder) so it sees the fonts, too.
DynaPDF (and ChartDirector) do not use the OS font list, but manage their own.

AddFontSearchPath … that does it.

If I recall correctly from other threads, it worked through 2016R3 but not 2016R4 or 2017R1.

[quote=341654:@Jeff Tullin]Well, I have a solution but it’s not great.

There are several ways to have a font available to your app only.
The MBS plugin will activate it temporarily.[/quote]

So how would I do this using the plugin for Windows?
Is it Xojo Win Plugin.xojo_plugin?
To activate a font called ‘Royal’ located next to the .EXE using the MBS plugin, how would I do it exactly, step by step?

Please check those methods in MBS Util Plugin:
http://monkeybreadsoftware.net/pluginpart-fontactivation.shtml

you get folderitem for font file and than pass it to the functions.

[quote=342910:@Christian Schmitz]Please check those methods in MBS Util Plugin:
http://monkeybreadsoftware.net/pluginpart-fontactivation.shtml

you get folderitem for font file and than pass it to the functions.[/quote]

is there an option either from MBS plugin or declares to get this to work on Linux (R PI in particular)??

I can look into this. Does someone know whether Xojo uses GDK Fonts or draws text with Cairo?

Thanks for looking into it.