-
AuthorPosts
-
July 1, 2013 at 11:01 am #25584
Hello,
I’d like to convert some otf font & add them to the theme settings &/OR add new Google Fonts to this theme settings
How to do that please?
Thank you
July 1, 2013 at 6:36 pm #127486#UPDATE
July 2, 2013 at 4:15 am #127487Hi,
You can add google fonts on includes > admin > register-admin-options.php, find this code
'Yellowtail'=>'Yellowtail',
For example, you want to add the google font Ropa Sans (http://www.google.com/fonts/specimen/Ropa+Sans), add this code below.
'Ropa Sans'=>'Ropa Sans',
You can use Ropa Sans font-family on custom.css or Quick CSS.
h1, h2, h3, h4, h5, h6 { font-family: 'Ropa Sans', sans-serif; }
Regards,
Ismael
July 3, 2013 at 10:42 am #127488Thanks a lot, & if i want to add HelveticaNeue font that i have converted already to .js for Cufon?
July 4, 2013 at 7:11 am #127489Hi,
I think you don’t need to do that. It is there already. Open the same file (register-admin-options.php), you will find this:
subtype" => apply_filters('avf_google_content_font', array( ':: :: Web save fonts :: ::'=>'',
'Arial'=>'Arial-websave',
'Georgia'=>'Georgia-websave',
'Verdana'=>'Verdana-websave',
'Helvetica'=>'Helvetica-websave',
'Helvetica Neue'=>'Helvetica-Neue,Helvetica-websave',
'Lucida'=>'"Lucida-Sans",-"Lucida-Grande",-"Lucida-Sans-Unicode-websave"',
':: :: Google fonts :: ::'=>'',
'Arimo'=>'Arimo',
'Cardo'=>'Cardo',
'Droid Sans'=>'Droid Sans',
'Droid Serif'=>'Droid Serif',
'Kameron'=>'Kameron',
'Maven Pro'=>'Maven Pro',
'Open Sans'=>'Open Sans:400,600',
'Lora'=>'Lora',
)));You can use it on your custom.css or Quick CSS already:
h1, h2, h3, h4, h5, h6 {
font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}Regards,
Ismael
July 6, 2013 at 9:59 am #127490hummm i mean for fonts that are not listed in your register-admin-options.php
By example, i want add a font from http://www.dafont.com that is not listed in your file nor website.
How can i add it here? Just uploading it somewhere & editing the CSS to select in admin of the theme?
& if i want add a Helvetica Neue Bold 57, different version of your Helvetica, how to do it ?
I understood for any google font & i thank you for this.
Tell me more for any dafont free front or helvetica variance
July 7, 2013 at 7:54 am #127491In this case you can’t use the theme option page to select the font but you need to generate a font-face kit here: http://www.fontsquirrel.com/tools/webfont-generator – then upload the generated fonts into the enfold/css/ folder and copy/paste the font-face code from the stylesheet into enfold/css/custom.css. Afterwards you should be able to use the font-face font as “font-family” value.
July 8, 2013 at 8:15 pm #127492Perfect answer! Thanks a lot
-
AuthorPosts
- The topic ‘HOW TO – ADD A CUSTOM FONT ?’ is closed to new replies.