The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 18 posts ] 
Author Message
PostPosted: Mon Dec 29, 2008 11:18 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Dec 29, 2008 11:07 am
Posts: 2
Hello,
I want to involve two different kinds of content-fonts in my Joomla 1.5 CMS so that I can choose while writting an articel. I want to involve it were I can choos already the H1-fonts etc.
Somehow this little issue becomes a hard challange for me.
How is it possible to add additional text-structure-elements in Joomla 1.5? I use the default WYSIWYG-editor.
Thank you very much indeed for helping me.


Top
 Profile  
 
PostPosted: Thu Feb 05, 2009 1:26 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Dec 05, 2008 12:55 am
Posts: 13
I am stuck here as well. This question was posted in several places around the forum and has never received an answer anywhere, except in one complex XML discussion which did not help me. If I have missed it in my search, can I get a hint on how to better search for the answer please?

Is there anyone who can write a set of steps to add a font to an install of 1.5? What is the format of the files, what is legal and not allowed, how is it added, will it work at all?

Someone, please?

??? ??? ??? :'(


Top
 Profile  
 
PostPosted: Fri Feb 13, 2009 5:22 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jun 05, 2008 8:31 pm
Posts: 1
Same here, not too many hits when searching for it either!!!
All help is welcome!

Ozz.


Top
 Profile  
 
PostPosted: Fri Feb 13, 2009 6:09 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Dec 05, 2008 12:55 am
Posts: 13
Ozzon wrote:
Same here, not too many hits when searching for it either!!!
All help is welcome!

Ozz.


So what I have discovered is that you cannot, of course, just add a font to the editor and expect that font to show up on a web page when people go to it. I had to say "DOH!", because obviously the system viewing the page would have the font installed as well, or there is no way to insure that, so the viewer would not see the font you added. See what I mean, DOH!

So, what I did was to create an image in Illustrator with the font I wanted as part of a picture, and then placed the picture I created into an article. Then, to make parts of the picture "clickable", I then added an HTML map and area command to the HTML of the article page to make parts of the image hot for links.

You can see what I did here: http://www.edisonlabs.net or an even better example here:
http://www.edisonlabs.net/index.php?opt ... Itemid=105

I posted elsewhere on the forum how to make picture parts hot. Hope this helps.

-Owen-


Top
 Profile  
 
PostPosted: Wed Apr 08, 2009 10:23 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Nov 03, 2007 9:09 am
Posts: 14
I have searched all possible solutions and I found that JsIFR3 is the only extension which works very well and it is free, but it still needs a lot of development to make it user-friendly:

http://extensions.joomla.org/extensions/6081/details

Quote:
This plugin integrates the Scalable Inman Flash Replacement (sIFR) in Joomla 1.5 and lets you use any font on your Joomla website. There are more than 14 different plugin settings that can be modified in the Joomla backend, for example text-color, font-weight etc. 11 fonts are allready included and custom fonts can be used aswell of which we offer a variety on our homepage. The sIFR version is sIFR 3 - r436 which is the newest and most stable version so far.


Top
 Profile  
 
PostPosted: Thu Apr 09, 2009 9:54 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Aug 12, 2008 10:13 am
Posts: 179
Will the font differ?
I mean that will the fonts will remain same everywhere.Anywhere the site opens?


Top
 Profile  
 
PostPosted: Thu Jul 30, 2009 5:55 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jul 30, 2009 5:39 am
Posts: 2
how to put fonts into core joomla?


Top
 Profile  
 
PostPosted: Sat Aug 01, 2009 1:45 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Dec 05, 2008 12:55 am
Posts: 13
It took a bit for this to sink in, but remember that no matter what fonts you put INTO Joomla, if they are not also on the computers of those viewing your pages as well, they will not show up as you expect. That means for a user to see a "custom font", you would have to have code that renders it as an image and then display the image of the text on the page as an image, not as text. Otherwise, you have no way of knowing what fonts are present on computers around the world, except the standard set of fonts as defined by HTML and usually included on all computers. Even then, I have seen so called standard fonts differ from machine to machine.

The reason I did not do this is that also means that your text is now not searchable and cannot be copied or pasted either.


Top
 Profile  
 
PostPosted: Mon Nov 30, 2009 7:33 pm 
Joomla! Guru
Joomla! Guru

Joined: Wed Nov 18, 2009 3:53 pm
Posts: 573
orubin wrote:
remember that no matter what fonts you put INTO Joomla, if they are not also on the computers of those viewing your pages as well, they will not show up as you expect.


Is that a fact? Does that mean that my choice of font is from those 18 types I see in the Joomla editor?


Top
 Profile  
 
PostPosted: Mon Nov 30, 2009 10:01 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Dec 05, 2008 12:55 am
Posts: 13
As far as I can tell, this has to be the case. The viewing system would need the font in order to render it. If it does not have the font, it just picks something else.

The only other way to display an arbitrary text string in a different font is to install the software listed above (or something like it) and have the web code render the font on the fly. But I see no way to allow a page to draw a font when the font it not on the system.

That is why I choose the image method.


Top
 Profile  
 
PostPosted: Wed Jun 01, 2011 7:04 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jun 01, 2011 6:58 pm
Posts: 4
I realize this thread is old, but I thought I'd still post how to add a custom font regardless visitors of your site don't have the said font installed without resorting to images.

Firstly, you must do it in your themes'/template CSS file, like so;

@font-face {
font-family: RAVIE;
src: url('http://link_to_the_.TTFfont_file_on_your_server.com/RAVIE.TTF'); /* in the URL declaration you must specify the .TTF extension */
}


Then you can use the usual font-family declaration to call your font type.

p{
font-family: RAVIE; /* no .ttf */
}

And there you have it. now it doesn't matter if your visitors have that font type installed or not. everyone will see your font selection on your pages.
Enjoy!
;)


Top
 Profile  
 
PostPosted: Fri Jun 03, 2011 7:38 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jun 01, 2011 6:58 pm
Posts: 4
a small correction to my previous post. The above will be valid for any browser other than IE.

In order to make IE swallow what you're trying to fit down it's throat you'll have to convert the valid TTF font file to an Microsoft EOT format, and use the similar technique to embed your font into your page.

you can do it online here.

http://www.kirsle.net/wizards/ttf2eot.cgi

then use the same method as above for IE browsers

@font-face {
font-family: MyCustomFont;
src: url("BRLNSDB_-_Copy_-_Copy.eot") /* EOT file for IE */
}

Leave it to Microsoft to typically complicate everyone's life.. *again* no one can blame them for helping anyone except for themselves...


Top
 Profile  
 
PostPosted: Tue Jul 26, 2011 11:55 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Jul 26, 2011 11:52 pm
Posts: 1
Go to the following folder: plugins/editors/jce/libraries/classes/editor.php
Online 371 you can see the listing of the font families. Add your font family here.
:p Kariba


Top
 Profile  
 
PostPosted: Tue Sep 27, 2011 7:28 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Sep 27, 2011 7:25 pm
Posts: 1
In the current version (JCE 2.0.4) the significant lines of code can be found in
administrator/components/com_jce/models/editor.php (approx. at line 486), namely

Code:
// Default font list
        $fonts = array(
            'Andale Mono=andale mono,times',
            'Arial=arial,helvetica,sans-serif',
            'Arial Black=arial black,avant garde',
            'Book Antiqua=book antiqua,palatino',
            'Comic Sans MS=comic sans ms,sans-serif',
            'Courier New=courier new,courier',
            'Georgia=georgia,palatino',
            'Helvetica=helvetica',
            'Impact=impact,chicago',
            'Symbol=symbol',
            'Tahoma=tahoma,arial,helvetica,sans-serif',
            'Terminal=terminal,monaco',
            'Times New Roman=times new roman,times',
            'Trebuchet MS=trebuchet ms,geneva',
            'Verdana=verdana,geneva',
            'Webdings=webdings',
            'Wingdings=wingdings,zapf dingbats'


good luck ;)


Top
 Profile  
 
PostPosted: Tue Sep 27, 2011 7:37 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jun 01, 2011 6:58 pm
Posts: 4
very excellent, thx DB.

:)


Top
 Profile  
 
PostPosted: Sat Nov 19, 2011 5:15 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 05, 2009 3:04 am
Posts: 19
mclovin wrote:
a small correction to my previous post. The above will be valid for any browser other than IE.

In order to make IE swallow what you're trying to fit down it's throat you'll have to convert the valid TTF font file to an Microsoft EOT format, and use the similar technique to embed your font into your page.

you can do it online here.

http://www.kirsle.net/wizards/ttf2eot.cgi

then use the same method as above for IE browsers

@font-face {
font-family: MyCustomFont;
src: url("BRLNSDB_-_Copy_-_Copy.eot") /* EOT file for IE */
}

Leave it to Microsoft to typically complicate everyone's life.. *again* no one can blame them for helping anyone except for themselves...



thanks alot indeed!!!

but in which of the oh so many css files in the template folder should we do this? there are like a hundred in my template


Top
 Profile  
 
PostPosted: Sat Nov 19, 2011 6:10 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Jun 01, 2011 6:58 pm
Posts: 4
Ok, I edited this twice now.. hehe but just to make sure...

I realize you quoted me in your post, but by any chances, are you referring to DB's post though?

quoted bellow.
DarwinsBuddy wrote:
In the current version (JCE 2.0.4) the significant lines of code can be found in
administrator/components/com_jce/models/editor.php (approx. at line 486), namely

Code:
// Default font list
        $fonts = array(
            'Andale Mono=andale mono,times',
            'Arial=arial,helvetica,sans-serif',
            'Arial Black=arial black,avant garde',
            'Book Antiqua=book antiqua,palatino',
            'Comic Sans MS=comic sans ms,sans-serif',
            'Courier New=courier new,courier',
            'Georgia=georgia,palatino',
            'Helvetica=helvetica',
            'Impact=impact,chicago',
            'Symbol=symbol',
            'Tahoma=tahoma,arial,helvetica,sans-serif',
            'Terminal=terminal,monaco',
            'Times New Roman=times new roman,times',
            'Trebuchet MS=trebuchet ms,geneva',
            'Verdana=verdana,geneva',
            'Webdings=webdings',
            'Wingdings=wingdings,zapf dingbats'


good luck ;)


Top
 Profile  
 
PostPosted: Sat Feb 25, 2012 5:13 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Feb 25, 2012 5:08 am
Posts: 1
Add styles to WYSIWYG editor in Joomla 1.5.x
Adding custom styles to the WYSIWYG editor makes styling articles much easier. Here are the simple steps to-do so!

Create your custom.css that includes your custom styles.
Save this custom.css to your template directory. /templates/my-template/css/custom.css
Go to Extensions -> Plugin Manager
Select the Editor - TinyMCE 2.0
Put the path to your custom.css in the Custom CSS Classes field.
Save


Download Free Fonts


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 



Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group