On Tue, 2 May 2017 23:08:12 -0400 "William L. Thomson Jr." <wlt...@o-sinc.com>
said:

> On Wed, 3 May 2017 10:11:45 +0900
> Carsten Haitzler (The Rasterman) <ras...@rasterman.com> wrote:
> 
> > i can't speak for elm_code specifically...
> 
> I do not think it is as specific to elm code
> 
> > but in general themes
> > define the font for something and you can - if the theme has labelled
> > the element with a text class, override that font and size with one
> > of your own. the way to "go back to defaults" is to UNSET it (remove
> > your font class entry with edje_object_text_class_del() or
> > edje_text_class_del() if global).
> > 
> > but elm_code is different as it's not driven by edje. its a textgrid
> > evas object directly driven by code thus elm_code's own code and
> > config here decide how it works. :)
> 
> Even that aside, I have say a list of fonts from
> evas_font_available_list.  Represented visually in a elm list object.
> How do I know which is the one used, for the window title, labels, etc.
> Which would allow me to select the current/default font in the font
> list presented to user.

you don't know. it's abstracted and hidden by edje. you can override. the rest
is data defined and may change at any point (based on how the data decides to
transition elements from one state to another).

> I get stuff can be styled overridden etc. With the default theme. Some
> font is in use. Unless you go to use a Custom Font Class in Settings.

you don't know. this is by design. the font could be sourced from the system.
it could be data privately tucked into the edje file only available to that
edje file content...

thus my recommendation was to just have an option in the list that is "default"
or maybe a checkbox somewhere etc...

> -- 
> William L. Thomson Jr.


-- 
------------- 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