I want to create a drop-down menu in which we can see all the available fonts and we can select any font of our choice. Also I want to create a font-color selection widget. There exists a large no of font-styles. I want to know how do i get all these fonts and how to create a widget using which user can select the color of his choice.
For creating font-selection drop-down menu, I have used list and for demo purpose, i added 3-4 font names and displaying them. Its working fine.
Google gave me the list of all font-names but writing down in html code isn’t a good approach i think.
I guess there should exist a js library for doing all this. Is there ?
Jukka K. Korpela is right, but regarding your question:
This should get you started on the selecting font family:
If it’s important to see if the fonts are installed you can use this to tool to check.
And if it’s ok to use flash you may use something like font-detect-js (they also have a demo but I didn’t manage to get it to work in chrome).
And for color selector I would recomend using : jscolor
Hope it helps, and good luck!