We trying to use a regular font and use the font engine to extrapolate
that to BOLD format.   I just tried with free font DejaVuSans.

 Typeface regFace = Typeface.createFromAsset(getContext().getAssets(),

"fonts/DejaVuSans.ttf");

Typeface  boldFace = Typeface.create(regFace, Typeface.BOLD);

Now when we set the type face to this boldFace in the paint object
using setTypeface(boldFace);

When we draw the text,  we are expecting bold fonts.  What we see is
regular fonts.  Is this not the right usage ?

If I use a bold font file it works.  But If I use regular font file,
the font is not extrapolated to bold.   Our platform has requirement
not use different font files for bold and regular fonts (space
limitations).

Can someone suggest where to start looking at ?  Is it in Skia
library ?  If so any pointers ?

Thanks!

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to