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
Can we not add fonts?
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 )
<br />
@font-face {<br />
font-family: 'OpenSans';<br />
src:url('../media/fonts/OpenSans-Regular-webfont.eot');<br />
src:url('../media/fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),<br />
url('../media/fonts/OpenSans-Regular-webfont.woff') format('woff'),<br />
url('../media/fonts/OpenSans-Regular-webfont.ttf') format('truetype'),<br />
url('../media/fonts/OpenSans-Regular-webfont.svg#glyphs') format('svg');<br />
font-weight: normal;<br />
font-style: normal;<br />
}<br />
```<br />
<br />
Note: this is a hardcore variant to add a font.. beqause i have no investicate official cs-way i have only thinking fast <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)">
What about Google Font support? Can we add these?
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.
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..
[quote name='tweaker' timestamp='1378694160' post='167942']
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
[/quote]
The question is HOW ADD A FONT TO LIST OF FONTS in template editor in Ultimate 4.x.
How can this be done?
Did you get this fixed? I want to know the exact same thing and I want to add Open Sans funnily enough.