On Tue, 2 May 2017 12:43:34 -0400 "William L. Thomson Jr." <[email protected]>
said:

> In working with Ecrire, there is a setting; standard in most editors,
> to set a custom font. That works fine, for the most part. I am having
> problems reverting back to the default font. Which is where I am stuck.
> I have been looking all over and trying various things that do not work.
> 
> It seems the font name is at least in the theme. Themes seem to set a
> font. I am not sure if that font name can be fetched. Some font is being
> used by default for text in any objects/widgets.
> 
> I am looking for any way to get the font name used by default. That
> way I can pass that back to elm code to reset the font back to
> default/system/theme in ecrire. If/when a user decides they no longer
> want the custom font.
> 
> Essentially checking use default font, should revert back and stop
> using their custom font. This works if  you close ecrire. I just need
> it working with it running.
> 
> You can see the settings dialog here, check box for Use Default Font.
> https://phab.enlightenment.org/T5411
> 
> I am open to any ideas, after chasing my tail and pulling hair! Thanks!

i can't speak for elm_code specifically... 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. :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to