Custom fonts don't work in candy?

I developed a handwriting application. And one of the main features of this is that we can change the default fonts to 4 other custom fonts, i.e. on

Vicmorg (Vic Modern Cursive) Cursive Writing 7 Dnealiancursive Print-Regular 

And it works great on all devices. Yesterday I updated my connection 10 to candy. Now the fonts are not accepted correctly, vicmorg.ttf and Dnealiancursive.ttf now do not work, but Print-Regular and Cursive Writing 7 work. But there are problems in other phones. Can this be fixed somehow? Please, help.

+8
android android-5.0-lollipop fonts
Dec 03 '14 at 10:29
source share
2 answers

convert all your fonts to .ttf from this link for me.

http://www.freefontconverter.com/

+21
Apr 15 '15 at 6:49
source share

Lollipoop error

.otf test files work correctly, but .ttf does not. my solution for .ttf files was converted to .otf

http://www.files-conversion.com/font-converter.php

or

http://www.font2web.com/

for a custom font, for example, a folder with internal resources (../assets/fonts/birdman-webfont.otf):

 Typeface birdman = Typeface.createFromAsset(getAssets(), "fonts/birdman-webfont.ttf"); TextView text= (TextView) findViewById(R.id.text); text.setTypeface(birdman); 

Note: if your file has a .ttf value and shows ERROR in conversion, change the extension to .otf manually and convert using http://www.files-conversion.com/font-converter.php

+1
Feb 08 '16 at 22:08
source share



All Articles