Fonts with a space in their name

More
7 years 7 months ago #1 by ihale
THANK YOU SO MUCH!!! I was trying to figure this out for 3 days. and you were 100% correct. the spaces were screwing everything up...Thanks u94acb

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #2 by laurelle
Hi Alison,

Thank you for adding this information, it is a good tip for people.

Note that when you are creating your font with the Cufon Generator, you can specify the font name that you want the font to use. The cases where your font name is long, has a space or other punctuation characters is when you should be using this field. That way you don't have to edit the Javascript file.

Thanks for sharing,
Laurelle

Laurelle
Developer
Keashly.ca Consulting

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #3 by u94acb
I just thought I would share this with everybody as it has been baffling me for ages as to why i could get some custom fonts to work and not others....

If you have a font that has a space in its name that isnt working using KC_cufon in joomla, then all you need to do is go to the font.js file that you generated and find in the first section of the code "font-family":"the font name" etc
and remove the space or give it a new name. Then rename the whole file to match eg:

for font that was "Alison Bold"
the code now becomes ....."font-family":"Alison"....
and the filename becomes Alison_400.font.js

Note: this doesnt work if you have restricted the domains as the file becomes encoded and you wont be able to find the relevant snippet.

Thanks To Keashly for providing an awesome plugin!

Alison
Al et Al Website Design

Please Log in or Create an account to join the conversation.

Joomla! & WordPress Hosts

Liquid Web is our recommended web hosting provider for Joomla! & WordPress websites. This is the host that we use for websites that we build. Liquid Web has an excellent reputation, fast servers and most importantly awesome service! They have technicians that are familiar with Joomla! & WordPress. Their technicians go above and beyond what other hosting providers do, in our opinion.

  

Liquid Web Managed Word Press   

Support Development

Please consider a small donation to support development of the extensions on this site.



Joomla! Login

This is the normal Joomla! login module not the VirtueMart login module. Click the 'Create an account' button to see how you are redirected to the VirtueMart registration form when the KC VM Registration Redirect plugin is enabled.

Joomla! & WordPress Web Design and Development

If you are interested in having a website designed or redesign or need custom Joomla! or WordPress development, please visit Keashly.ca Consulting to view our Portfolio of Joomla! & WordPress website work.

Trademarks and logos remain the property of their respective organizations.
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries.
Keashly.ca Consulting is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Site Map Back to Top