Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #127486

    #UPDATE

    #127487

    Hi,

    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

    #127488

    Thanks a lot, & if i want to add HelveticaNeue font that i have converted already to .js for Cufon?

    #127489

    Hi,

    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

    #127490

    hummm 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

    #127491

    In 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.

    #127492

    Perfect answer! Thanks a lot

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘HOW TO – ADD A CUSTOM FONT ?’ is closed to new replies.