css - Use of two complementary fonts in Android -
i possess 2 complementary fonts installed on computer (linux), , used render every characters 2 fonts have.
i have liked use in same way these fonts in android. unfortunately, don't know how (i know how load 1 font).
i have tried merge them fontforge, unfortunately couldn't because total number of glyphs on 65535 glyphs (which limit of sfnt format).
is there possibility go on 65535 glyphs, font can used in android?
if not, there way use these fonts conjointly in android in general, characters not recognized font recognized other (like computer does)?
if not, possible use 2 typeface in textview, characters not recognized font recognized other?
know can use spannable use different typeface different parts of textview, that's not need here.if not, possible detect unrecognized characters of textview, use other font them?
is possible use css style "font-family" in textview, provide alternative font in case first fails characters?
thanks direction given jaisoni, have managed find way solve problem using html , css : have used webview, , have declared @font-face define fonts. then, have used them in css attribute "font-family" :
<style type="text/css"> @font-face {font-family: myfont; src: url("file:///android_asset/fonts/font.ttf")} @font-face {font-family: myfont2; src: url("file:///android_asset/fonts/font2.ttf")} body {font-family: myfont2, myfont; } </style>
thank much.
Comments
Post a Comment