I am wanting to use symbol glyphs from a variety of TTF fonts , but in an iOS app.
I can get them (more or less…) in desktop, and include them in a PDF using MBS plugins and ‘embed’ instructions.
The iOS examples which come with Xojo have 2 font samples
One lists available fonts
One purports to have a variety of fonts in labels, but so far it only seems to work for me with the very specific couple of fonts in the example.
If I try to use any of the ‘dings’ style fonts, I dont get symbols, it just shows letters as a fallback.
I need to bundle some TTF fonts and make them available to my iOS app.
Does anyone know how to do that?
(SF Symbols might do if I can embed them in a PDF as a vector glyph)
I only just saw the reply - I did not get a notification about the editted version.
I confess I don’t know what to do with the variable f after the line Var f as new Font(“FontName”)
I’m used to g.textfont = ??? syntax
Does f simply mean the app will be aware of Fontname afterwards, or is there some special syntax to make use of f in a graphics or PDF context?
Maybe you can find useful this blog post, specially the section titled “Using Fonts Not Installed in the Operating System” when it is about using them on a PDF document / Graphic context.
That key is not right. You need to create the plist in Xcode and enter that text. When you save, the correct one will be created. Keys are typically all one word and start with NS or UI.
In this case, the key should be (as Jérémie stated above):
Uops! Yeah, somehow that key (more properly, text) slipped in. Fixed already, sorry for the inconvenience! Anyway, the post is about how to use these user fonts on PDF, if it helps.
Oddly, I don’t see any examples of 'how to use these user fonts on PDF’
other than ‘set a property and your fonts should be embedded’
baby steps … lets get the font showing up.
I have only used DynaPDFMBS so far… maybe in this instance I might benefit from using Xojo’s implementation, but I have a lot of Dyna format code I just want to port, while changing as little as possible.