Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

ANDROID CUSTOM FONTS ON MOTOROLAS

$
0
0

In an Alloy project I have a label that shows a Barcode, using a custom font (Code EAN13 - TrueType - ean13.ttf) I've tried it in many devices and emulators without any problem, but on Nexus 6 an some Motorolas the font isn't loaded : default device font is loaded in its place.

The strangest thing is that just above the barcode label there's another label which use a custom font (Penumbra Sans Std - OpenType PostScript - penumbra.otf), and this one shows the right font.

Someone could help me in understanding this behavior? The font file has been downloaded from a font website and work perfectly in any environment.

This is the css file :

"#num": {
    font: {
            fontSize: "16dp",
            fontFamily: "penumbra"
        },
    color: "#072c5e",
    width: Ti.UI.FILL,
    height:"20dp",
    backgroundColor: "#f4bb08",
    left: "0",
    top: "36dp",
    textAlign: "center" 
},
"#barcode": {
    font: {
            fontSize: "84dp",
            fontFamily: "ean13"
        },
    color: "black",
    width: Ti.UI.FILL,
    bottom: "36dp",
    left: "0",
    textAlign: "center" 
},

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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