javascript - Titanium mobileweb font face not working -
we developing apps android, ios , mobile web using titanium. want change font of text , working fine on android, ios, mobile web on emulator. if open file on browser (ie firefox), font not working.
there code changing font:
"textfield": { height : 40, color : "#000000", returnkeytype : titanium.ui.returnkey_done, backgroundfocusedcolor : "transparent", font: { fontsize : 16, fontfamily : "opensans-regular" } }
and when check firebug, shows this:
@font-face { font-family: "mobileweb\f ontsopensans-regular"; src: url("mobileweb\f ontsopensans-regular.ttf,mobileweb\f ontsopensans-regular.woff"); }
which not gonna work since font-family shows address , not font name. searched on web , see if have solution , cant find one.
maybe bug know if guys have workarounds on this.
ill appreciate help. thanks!
you need set text value above or below "font: {}" section.
text: " text in here show in code "
by way, helped me app too, font didn't want change default values. help!! :-)
Comments
Post a Comment