adding fonts to FCKeditorX - garamond

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
sleepyg1973

adding fonts to FCKeditorX - garamond

Post by sleepyg1973 »

hi,
i'm a newbie to this cms made simple stuff. must admit i'm really impressed so far. i'd like to use different fonts other than the standard onese supplied when you install cmsmadesimple through fckeditorx. can anyone tell me if this is possible and if so point me towards documentation and the configuration files i might need to modify? i'd like to use the garamond font ....
cheers,
g
???
Sub_Kovert

Re: adding fonts to FCKeditorX - garamond

Post by Sub_Kovert »

I think that the fonts shown are used in most browsers and systems. If you use a different font the viewer of the site will need that font on their system or else it will default to something else.

At least I think this is true.........someone else may be able to confirm this........ ???
cyberman

Re: adding fonts to FCKeditorX - garamond

Post by cyberman »

Hi sleepyg1973,

welcome on CMS made simple  :) ...
sleepyg1973 wrote: i'd like to use different fonts other than the standard onese supplied when you install cmsmadesimple through fckeditorx. can anyone tell me if this is possible
The answer is not so easy cause existing operating systems have not the same default system fonts. But you can only show a font on your homepage which is installed on homepage visitors computer.

The first option to use other fonts for headlines and menu entries is using the truetype module

http://dev.cmsmadesimple.org/projects/truetypetext/

All chars will be transformed to a picture - but I think that's not an option for longer text.

The second option is the including of some generic fonts in css stylesheet, e.g.
font-family:      Helvetica, Geneva, Arial, SunSans-Regular, sans-serif;
not only
font-family:      Helvetica;
so layout of your page will be not destroyed if a visitor haven't install your page default font on his computer.

The last (exotic) option only for with CSS2 compatible browsers is to import a font file like


@font-face { font-family:Kino; src:local(Kino MT), url(kino.ttf) format(TrueType); }


It's not for real use now cause there are not very much CSS2 compatible browsers  :(.
Last edited by cyberman on Tue Jun 27, 2006 5:35 pm, edited 1 time in total.
musicscore
Power Poster
Power Poster
Posts: 477
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

Re: adding fonts to FCKeditorX - garamond

Post by musicscore »

This isn't as difficult as it seems.

Just open the file fckconfig.js which is located in ".......\modules\fckeditorx\fckeditor".

At about line 113 you find the line :

FCKConfig.FontNames= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana;'

Add the fonts you want to this line for example :

FCKConfig.FontNames= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana; Impact; Calibri;'

Now save this file and open the FCKEditorx in CMSMS

And Hoera, the extra fonts can be selected.  ;D

Think about what Cyberman told you. If you select a font that is only on your system and NOT on the visitors system, the visitor wann't see that font.

Musicscore
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: adding fonts to FCKeditorX - garamond

Post by Dr.CSS »

If using a standard install of XP go to C:\WINDOWS\Fonts to see default fonts, if you haven't added extra fonts...
Locked

Return to “Modules/Add-Ons”