How can I get the list of available fonts on a system in Ruby? It seems like
there should be a built-in function that does it.
---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Many stylesheets contain a list of fonts, in order of descending
preference. Just make sure that the last font is guaranteed to be
available, Verdana for example.
body
{
font-family: Helvetica, Verdana;
}
If you really want to offer a list of fonts to your users, it doesn''t
sound pleasant. You need to use flash, and then retrieve the list from
here using javascript. This link looks useful:
http://nevermore.pri.ee/2007/03/14/another-better-font-detection-using-javascript-flash/
Hope that helps.
Cheers,
Chris
On Jul 5, 10:44 am, Will Gant
<williamwg...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:> How can I get the list of available fonts on a system in Ruby? It seems
like there should be a built-in function that does it.
>
> ---------------------------------
> Yahoo! oneSearch: Finally, mobile search that gives answers, not web
links.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Hmm. I guess probably need to phrase the question a little differently. What I
want to is get list of all the fonts on the system. This won''t be for a
stylesheet or anything, it''s just there for a lookup table. The user
won''t have contact with actual font - all I need is for them to be able
to select one from a list.
Will
Chris <Chris.Hughes.Personal-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
wrote:
Many stylesheets contain a list of fonts, in order of descending
preference. Just make sure that the last font is guaranteed to be
available, Verdana for example.
body
{
font-family: Helvetica, Verdana;
}
If you really want to offer a list of fonts to your users, it doesn''t
sound pleasant. You need to use flash, and then retrieve the list from
here using javascript. This link looks useful:
http://nevermore.pri.ee/2007/03/14/another-better-font-detection-using-javascript-flash/
Hope that helps.
Cheers,
Chris
On Jul 5, 10:44 am, Will Gant wrote:> How can I get the list of available fonts on a system in Ruby? It seems
like there should be a built-in function that does it.
>
> ---------------------------------
> Yahoo! oneSearch: Finally, mobile search that gives answers, not web
links.
---------------------------------
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder
tool.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---