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.

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.

Attachment: pgpbwj8_nOqjo.pgp
Description: OpenPGP digital signature

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