Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

How to access all the fonts on the device in iOS?

$
0
0

I have a simple program that runs in AIR. Everything is working fine, except for one detail; i can't get the font I want to draw in a TextField. I try selecting the font, but I don't get the one i wanted, it always snaps back to the default _sans font. It works on the AIR simulator, but not on the device itself. I dumped out the font list using the enumerate function, and I see the following families:

 

name : Avenir Next Condensed

name : Bangla Sangam MN

name : Baskerville

name : Bodoni 72

name : Bodoni 72 Oldstyle

name : Bodoni 72 Smallcaps

name : Bodoni Ornaments

name : Bradley Hand

name : Chalkboard SE

name : Chalkduster

 

...etc...

 

But i try to access Bodoi 72 Smallcaps, and I get the normal _sans font.

And how can I access the "demibold" fonts that are actually on the device.

if you run a font dumper utility on the IOS devices, like the free AAA fonts app, you will see the actual font names are listed like this:

 

AvenirNextCondensed-Bold,

AvenirNextCondenses-DemiBold,

etc...

 

Clearly Adobe is trying to create the concept of a font family, and variations in that family. It is easy enough to get the fonts you want if you stick to vanilla fonts that only have Bold, Italic, and BoldItalic variants, because there is a BOLD and ITALIC flag in the TextField control. But how on earth are we supposed to access the really important fonts like the condensed ones, or the demibold? 

 

This is frustrating the heck out of me; i have tried giving the TextField () function all sorts of different spelling variants, but haven't found the trick to coerce the system to use the font i want. It would also be super helpful if Adobe would refine their font enumeration system to give us the actual sub-fonts in the family, not just the generic family because on the all important mobile devices you don't find nice orthogonal font sets; you have holes all over the place, and it is super important to use the best fonts you have, given that your selection is so meagre.

 

any help is greatly appreciated.

 

edward


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>