Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Can I get a list of available (installed) fonts


This question is answered.


Permlink Replies: 5 - Last Post: Sep 4, 2015 12:47 PM Last Post By: Douglas Rudd
Free Dorfman

Posts: 139
Registered: 2/4/12
Can I get a list of available (installed) fonts  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 3, 2015 6:35 AM
I'd like to get a list of all available (installed) fonts under FMX (XE8).

For Windows initially. Also for OSX, Android and iOS.

I don't see a single "font" control in the entire Palette and cannot find anything in the help or online.

Any thoughts?

-Thanks
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Can I get a list of available (installed) fonts
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 3, 2015 1:06 PM   in response to: Free Dorfman in response to: Free Dorfman
Free wrote:

I'd like to get a list of all available (installed) fonts under
FMX (XE8).

AFAIK, FireMonkey does not have that capability. You will have to resort
to using platform APIs directly, such as EnumFontFamilies/Ex() on Windows
(which is what VCL's TScreen.Fonts property uses).

--
Remy Lebeau (TeamB)
Free Dorfman

Posts: 139
Registered: 2/4/12
Re: Can I get a list of available (installed) fonts  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 3, 2015 10:40 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Free wrote:

I'd like to get a list of all available (installed) fonts under
FMX (XE8).

AFAIK, FireMonkey does not have that capability. You will have to resort
to using platform APIs directly, such as EnumFontFamilies/Ex() on Windows
(which is what VCL's TScreen.Fonts property uses).

--
Remy Lebeau (TeamB)

Any thoughts on how those Windows fonts would get "translated" (embedded?, approximated?) in the other 3 environs (OSX, Android, iOS)?

-Thanks
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Can I get a list of available (installed) fonts  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 4, 2015 12:21 PM   in response to: Free Dorfman in response to: Free Dorfman
Free wrote:

Any thoughts on how those Windows fonts would get "translated"
(embedded?, approximated?) in the other 3 environs (OSX, Android,
iOS)?

I am not quite sure I understand what you are asking.

--
Remy Lebeau (TeamB)
Douglas Rudd

Posts: 314
Registered: 5/16/97
Re: Can I get a list of available (installed) fonts  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 4, 2015 12:47 PM   in response to: Free Dorfman in response to: Free Dorfman
IOS and Android have a set of standard fonts that are built-in. The list doesn't change. Should be able to find the lists in the Android and IOS documentation.

An app could use some other custom font too, but its not going to be registered with the OS so you wont be able to find them by enumerating OS fonts.
Gilbert Padilla

Posts: 315
Registered: 3/8/04
Re: Can I get a list of available (installed) fonts
Correct
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 4, 2015 12:43 PM   in response to: Free Dorfman in response to: Free Dorfman
//For Windows initially. Also for OSX, Android and iOS.

This may give you an idea
https://delphiscience.wordpress.com/2012/11/20/getting-system-fonts-list-in-firemonkey-the-new-tplatformextensions-class/
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02