This project has moved. For the latest updates, please go here.

Selection of Font-family

Nov 19, 2009 at 10:35 AM

How do I add a button in the toolbar for selection of font-family?


May 4, 2012 at 1:31 AM

I am also need to know how to do this. Thanks

May 31, 2012 at 7:02 AM

I've just created a plugin for fonts selection. Will try to post it shortly



Oct 8, 2012 at 10:23 PM

Simon, did you ever get around to writing that plugin?

Oct 9, 2012 at 6:34 PM
Edited Oct 9, 2012 at 6:52 PM


Hi Mikemill,


Yes I uploaded it but its still under review... for months now.. :/


Under Sourcecode / Patches



Dec 15, 2012 at 7:26 AM

first off thanks for jhtmlarea!


I used the patch and found a little issue. Was able to fix it for myself. I figured since I was using jhtmlarea for free I should post it here. I don't claim to know what I am doing, just a hack.

When i used the patch the and clicked on font family button it worked but the font names went to the right and out of the drop down. Guessing that my own css was interfering with the patch's I opened jHtmlArea.FontPickerMenu.css and found this line

div.jHtmlAreaFontPickerMenu div {float: left; margin: 2px; width: 112px; height: 14px;}

Changed it to this

div.jHtmlAreaFontPickerMenu div {float: left; margin: 2px; width: 112px; height: 14px; text-align: left;}

iow, added text-align: left;

No biggie but figured someone who knows even less than me might try the patch and get a headache trying to change it.

thanks again!

Dec 15, 2012 at 10:02 PM

Hi DrNotSure

Thanks for posting the font patch change. I didn't notice that. I'll check/update the patch and post it when I get a moment.






Feb 4, 2013 at 1:24 PM
hi, i have 2 questions
  1. do we use Menu for display font names, instead of single list of font names.
  2. did any one uses this.fontfamily("arial") method to change the font, i am
    trying to use it in customise toolbar button