android - Custom font in navigation bar using supersonic -
i quite new (read absolute beginner) mobile development using hybrid framework. first project decided use supersonic framework appgyver. problem occured, when wanted change font of title in navigation bar. here's tried:
i put downloaded font-related files folder appname/app/common/assets/fonts
.
afterwards created stylesheet, contains "custom" font definition:
@font-face { font-family: 'ralewaybold'; src: url('/fonts/raleway-bold-webfont.eot'); src: url('/fonts/raleway-bold-webfont.eot?#iefix') format('embedded-opentype'), url('/fonts/raleway-bold-webfont.woff2') format('woff2'), url('/fonts/raleway-bold-webfont.woff') format('woff'), url('/fonts/raleway-bold-webfont.ttf') format('truetype'), url('/fonts/raleway-bold-webfont.svg#ralewaybold') format('svg'); font-weight: normal; font-style: normal;}
saved raleway.css (here, need say, tried put code android.css , application.css files, none of worked.)
finally, wanted change font of navigation bar title of default application (created steroids create appname
) editing
navigation-bar title { ... font-family: "ralewaybold";}
but nothing happenned.
as said in beginning quite new hybrid development (and stuff around it), appreciate much, if you'd advice me.
i had trouble fonts in android yours. that: fonts work dont , doesnt matter if ttf or else supported.
you can jsut check if doesnt work other fonts. if 1 font doesnt work android uses default font android sans...
Comments
Post a Comment