On Wed, 2 Jul 2014 14:21:41 +0800 Magicloud Magiclouds
<magicloud.magiclo...@gmail.com> said:

elementary_test -to "entry style user"

that one. :)

test_entry_style_user() in test_entry.c in elm's src (src/bin)


it does:

   elm_entry_text_style_user_push(en, user_style);

where the style is:

static char *user_style =
   "DEFAULT='font_size=16 color=#F00'"
   "em='+ backing=on backing_color=#FFF'"
   "grn='+ color=#0F0'"
   "ul='+ underline=on underline_color=#AAA'";

> Hi,
> 
>   Sorry I am not sure which test did you talk about. I looked into
> elementary's source, tests and examples, no c source contains "font".
> 
>   My code is:
> 
> 19|    c = Configuration ()
> 
> 
> 20|    for tc in c.text_classes_list:
> 
> 
> 21|        fn = font_fontconfig_name_get ('WenQuanYi Micro Hei Mono')
> 
> 
> 22|        print fn
> 
> 
> 23|        c.font_overlay_set (tc[0], fn, 10)
> 
> 
> 24|    c.font_overlay_apply ()
> 
> 
> On Wed, Jul 2, 2014 at 2:15 PM, Carsten Haitzler <ras...@rasterman.com>
> wrote:
> 
> > On Wed, 2 Jul 2014 13:14:55 +0800 Magicloud Magiclouds
> > <magicloud.magiclo...@gmail.com> said:
> >
> > > Hi,
> > >
> > >   I found some APIs in reference, and called them without error. But
> > still,
> > > I could not see the font changed.
> >
> > can you be more specific? did you look at the elementary tests that do just
> > this? (entry style user - entries)
> >
> > --
> > ------------- Codito, ergo sum - "I code, therefore I am" --------------
> > The Rasterman (Carsten Haitzler)    ras...@rasterman.com
> >
> >
> 
> 
> -- 
> 竹密岂妨流水过
> 山高哪阻野云飞
> 
> And for G+, please use magiclouds#gmail.com.


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to