On Wed, 3 May 2017 13:58:34 +0900
Carsten Haitzler (The Rasterman) <ras...@rasterman.com> wrote:

> On Wed, 3 May 2017 00:49:30 -0400 "William L. Thomson Jr."
> <wlt...@o-sinc.com> said:
> > 
> > This is what I am talking about and should be possible.
> > https://www.enlightenment.org/ss/e-59095db53e8c29.70825110.jpg
> >
....
> > 
> > This is related to a checkbox
> > http://www.enlightenment.org/ss/e-59096069ede7c5.06609829.jpg
> > 
> > If I hard code in some font family. If the user has a different one
> > set for their system. My default will not be their default. Which
> > is my concern over the hard coded value in elm code.  
> 
> add one more entry: "Default system font" and let the toolkit choose
> for you when that is chosen (have no overlay/override).

Add another checkbox or entry to control the default font? I do not
want a default font specific to Ecrire... That really makes no sense.
This is essentially the same as going into Settings -> Fonts, and
changing the size.

Those screenshots explain it all. It is VERY common. Most any font
dialog I have ever seen, it has the current font selected. I am just
trying to do the same....

Seems this is possible in others for example 

GTK
https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-font-name

QT
http://stackoverflow.com/a/28710622

Java Swing (couple ways)
http://stackoverflow.com/a/1434503
http://alvinalexander.com/java/how-to-get-default-system-font-java-swing

JavaFx
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/text/Font.html#getDefault--
http://stackoverflow.com/a/28552910

Android has fontFamily and Typeface, but seems new stuff coming via
FontManager,FontConfig, etc 
https://developer.android.com/reference/android/widget/TextView.html#attr_android:fontFamily
https://developer.android.com/reference/android/graphics/Typeface.html#DEFAULT
https://developer.android.com/reference/android/text/FontManager.html
https://developer.android.com/reference/android/text/FontConfig.html


-- 
William L. Thomson Jr.

Attachment: pgpl3lIiJxVNJ.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