Any pointers please....

On Nov 3, 3:28 pm, android_explorer <[email protected]> wrote:
> Just adding more information.
>
> 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!
>
> On Nov 1, 4:39 pm, android_explorer <[email protected]> wrote:
>
> > 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 ?
>
> > Please advise and thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to