Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Add fonts to list Rate Topic   - - - - -

 
  • tweaker
  • Senior Member
  • Members
  • Join Date: 03-Aug 07
  • 156 posts

Posted 09 September 2013 - 02:36 AM #1

When you go to the template editor and you select Fonts, there's a list of fonts that are listed there as available fonts. How do you add to this list a web font?

Thomas

 
  • tweaker
  • Senior Member
  • Members
  • Join Date: 03-Aug 07
  • 156 posts

Posted 02 October 2013 - 01:37 AM #2

Can we not add fonts?

 
  • posto
  • Senior Member
  • Members
  • Join Date: 19-Sep 11
  • 160 posts

Posted 02 October 2013 - 05:09 AM #3

the fonts are addes via @fontface

also you can try to upload new font in our theme media/font

and load this via css

example: (../ are the phat to the font = dont forget to define this font )
@font-face {
    font-family: 'OpenSans';
    src:url('../media/fonts/OpenSans-Regular-webfont.eot');
    src:url('../media/fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
	    url('../media/fonts/OpenSans-Regular-webfont.woff') format('woff'),
	    url('../media/fonts/OpenSans-Regular-webfont.ttf') format('truetype'),
	    url('../media/fonts/OpenSans-Regular-webfont.svg#glyphs') format('svg');
    font-weight: normal;
    font-style: normal;
}

Note: this is a hardcore variant to add a font.. beqause i have no investicate official cs-way i have only thinking fast ;)
Templates for v3

**see Posto's Templates Tread**

 
  • tweaker
  • Senior Member
  • Members
  • Join Date: 03-Aug 07
  • 156 posts

Posted 02 October 2013 - 06:13 PM #4

What about Google Font support? Can we add these?

 
  • posto
  • Senior Member
  • Members
  • Join Date: 19-Sep 11
  • 160 posts

Posted 04 October 2013 - 04:56 AM #5

Sure no problem.

activate the my_change addon.

show that all these folder exist, or create it:

design/themes/basic/templates/addons/my_changes/hooks/index

in the index folder create a file named.
style.post.tpl
add your google code: example.

<link href="http://fonts.googlea...,300italic,700" rel="stylesheet" type="text/css" />

create a costum css file in :

design/themes/basic/css/addons/style.css
there you add your style

for example :
h1, h2, h3 {
font-family: "Open Sans Consdesed" , Arial, sans-serf;
other style etc.
}

clar cache in backend and delete all file in var/cache/templates/design/themes

have fun..
Templates for v3

**see Posto's Templates Tread**

 
  • d.saveliev
  • Junior Member
  • Members
  • Join Date: 20-Nov 10
  • 41 posts

Posted 29 October 2013 - 08:24 AM #6

When you go to the template editor and you select Fonts, there's a list of fonts that are listed there as available fonts. How do you add to this list a web font?

Thomas


The question is HOW ADD A FONT TO LIST OF FONTS in template editor in Ultimate 4.x.
How can this be done?

 
  • oopsie
  • Member
  • Members
  • Join Date: 26-Oct 13
  • 29 posts

Posted 22 November 2013 - 03:24 AM #7

Did you get this fixed? I want to know the exact same thing and I want to add Open Sans funnily enough.