tags:

views:

120

answers:

2

Hi, I want to implement a font and color picker in my project. I implemented the color picker, I got it the code, but still I don't get the code to implement the font picker. Does any one know?

Thanks in advance.

A: 

I found a StackOverflow question with a similar problem: Detecting font in Javascript. There I found this solution to list all installed fonts:

This page can list all of your installed and well known fonts so you could use his code (with permission!) and put them in a picker list.

Disclaimer: This method is not very fast and won't work perfectly!

furtelwart
A: 

Need code snippet?

<?php header("Content-type: text/css"); 

$backgroundcolor = "#00FFF0";

$textcolor = " #0033FF";
?>
body {
 background:<?php  echo $backgroundcolor?>;
 color:<?php echo $textcolor?>;
}

Someone told me this works well with Javascript and on your tags it said PHP or Javascript.

Newb