On Thu, 4 May 2017 03:27:11 -0400 "William L. Thomson Jr." <wlt...@o-sinc.com> said:
> On Thu, 4 May 2017 13:22:47 +0900 > Carsten Haitzler (The Rasterman) <ras...@rasterman.com> wrote: > > > > 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. > > Forget elm code for now. Other objects have fonts being set. Is there > no way to fetch the font name, size etc from those. Label, entry, etc. > Using the theme, and via edje/edc files. > > Seems strange to have values and things in configuration files that are > not available via some API call. They are not in configuration files. They are in data files (themes). These can be swapped out at any time. When a user selects "Comic Sans" and Comic Sans HAPPENS to be the default font in the theme... did they select "whatever the theme provides" OR "comic sans"? if they then switch theme where the default font changes to Windings ... should the font stay as Comic Sans or switch to Windings? If you have the default HIDDEN then this problem doesn't happen. You make an explicit choice of "I want font X" or "I want whatever the theme has decided on". You don't get to know what the font is that the theme has chosen because it's abstracted. It may not even be the part name in the edj file that is the "standard label" that determines the visible font. It may be something else. It's abstract. You get to override or not. You don't get to peek inside the black box. > > 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. > > That issue is resolved with elm code. I think it starts by > default in Mono, so it reverting back to mono is fine. If that changes, > it will internally and should not effect my usage. That may change in future. elm_code is currently unstable. It SHOULD be using the theme to decide it's look and feel though and it currently is not. > However, if a user wants to change fonts, I think it should start with > the current one selected, or shown. Its how any font dialog I have seen > works. > > Very few if any, short of e, have font dialogs where a current font is > not selected. > > -- > 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