On Fri, 2010-12-17 at 09:35 +0100, Olivier Duclos wrote:
...
>       style {
>               name: "cool_button";
>               base: "font=TomsonTalks:style=Bold font_size=40";
>       }
> 
> The font TomsonTalks.ttf is embedded in the .edj file.
> 
> The problem is, when I run my application, the text appears in bold but
> not with the font I selected (it switches to Vera I think).
...

Dear Oliver,

Sorry for the late reply.

Does it work if you don't embed the font in the .edj (i.e set the style
the same, but don't include the font in the edje)?

I suspect one of the following:
1. You included the "Regular" font and forgot to include the "Bold" font
(Yes, they are in different files).
2. There is no "Bold" version for this font and Pango applies algorithms
that produce bold fonts from non-bold ones in run-time something which
Evas does not currently support.

So, for the first case, just include the Bold font in the .edj.
For the second, you can (as a workaround) create a bold font from the
regular one using font generating applications (I don't have one in mind
at the moment. Maybe fontforge can do that, really, I have no idea).

--
Tom.



------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to