On Tue, 2 May 2017 18:05:36 -0400 "William L. Thomson Jr." <wlt...@o-sinc.com>
said:

> On Tue, 02 May 2017 21:51:25 +0000
> Stephen Houston <smhousto...@gmail.com> wrote:
> 
> > EAPI const Eina_List *elm_config_font_overlay_list_get(void); ...
> > so... Eina_List *fonts, *l; Elm_Font_Overlay *overlay;
> > 
> > fonts = elm_config_font_overlay_list_get();
> > EINA_LIST_FOREACH(fonts, l, overlay) {
> >    if (eina_streq(overlay->text_class, "Entry Text")) {
> >       your default font is overlay->font
> >       your default font size is overlay->size
> >    }
> > }
> 
> Empty list. can't even try to compare. Put it in a few places, just in
> case that had some effect. List is empty no matter what.

you have no custom font config set int he overlay. this isn't listing available
fonts. it's listing what has been overridden in config (stored for the user
+profile)

>    Eina_List *fonts, *l; Elm_Font_Overlay *overlay;
>    printf("\n\n\n Begin fonts from overlay test \n");
>    fonts = elm_config_font_overlay_list_get();
>    EINA_LIST_FOREACH(fonts, l, overlay)
>      {
>        printf("font=%s size=%d\n",overlay->font,overlay->size);
>        if (eina_streq(overlay->text_class, "Entry Text"))
>          {
>            printf("\toverlay font=%s
>    size=%d\n",overlay->font,overlay->size); }
>      }
>    printf("\n\n\n");
> 
> The font list in ecrire comes from evas_font_available_list. I did not
> see anything there to point out which one was the default, or font in
> use by evas for everything.

that is just loisting available fonts. it will never tells you what it default
as it simply is an api for listing fonts that exist.

the way to undo a font overlay and go back to what it was is to remove the
entry in the overlay... you don't know WHAT this is ... but that's how to go
back to default. i'd say provide a SPECIAL font option for "default font" - qa
checkbox to turn off your customized font overlays etc... something like that.

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to