On Wed, 3 May 2017 21:13:56 -0400 "William L. Thomson Jr." <wlt...@o-sinc.com>
said:

> On Wed, 3 May 2017 00:49:30 -0400
> "William L. Thomson Jr." <wlt...@o-sinc.com> wrote:
> 
> > In the default theme, the fonts.edc file has
> > #define FNBD   "Sans:style=Bold"
> > #define FNIT   "Sans:style=Oblique"
> > #define FNBDIT "Sans:style=Bold Italic"
> 
> It seems this is what I am after. I am not sure how to obtain it
> though. I have noticed in the default theme, and one I am
> customizing[1]. That you can set a default font within the them. Which
> is like other stuff, GTK, QT, etc.
> 
> For example
> default/edc/battery.edc:    text { font: "Sans";
> default/edc/battery.edc:    text { font: "Sans:style=Bold";size: 10;
> 
> Also set globally in per above, I omitted the standard FN one.
> default/fonts.edc: #define FN     "Sans"
> 
> Which is used like
> default/edc/clock.edc:            text { font: FN; size: 8;
> default/edc/clock.edc:            text { font: FN; size: 10;
> 
> default/edc/dialog.edc:         base: "font="FN" font_size=10
> 
> How can I get that information? The font and size.

I have explained - you cannot. and elm code is different not using edje to
define look and feel the same way as everything else. This "you cannot see" is
by design as I mentioned. And as I suggested in my other email - provide a
"default font" entry that REMOVES your overlay.

> In the theme I am modifying, I have switched to Noto Sans. I think the
> default use of Sans uses the first general Sans font from fontconfig.
> Not that it is a problem. Just does not help determine which font is
> the default/system font.
> 
> Maybe to start the default theme should specify a Sans font; maybe Noto
> Sans, or other freely available for any OS. Then at least we can
> reliably pass that to fontconfig and always have the same default system
> Sans font on any system.
> 
> That still leaves the issue of getting the Noto Sans font name from a
> object/widget. Which everything seems to have one per the edc files in
> a theme default or otherwise.
> 
> 1. https://github.com/Obsidian-StudiosInc/eminence
> 
> -- 
> 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