Archived

This topic is now archived and is closed to further replies.

  • 0

Add custom font to pagelines


Question

Posted · Report post

Guys,

I am looking to add a custom font combination to the list of fonts. The font that I want is not listed...

-MrHinsh

p.s. I don't care if it is websafe :) thats what fallback is for...

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

So I added the Customisation plugin and edited the funcations.php to add:


add_filter ( 'pagelines_foundry', 'metro_body' );

add_filter ( 'pagelines_foundry', 'metro_heading' );

add_filter ( 'pagelines_foundry', 'metro_link' );


function metro_body( $thefoundry ) {

                $myfont = array( 'metro body' => array(

                                'name' => 'metro body',

                                'family' => '"metro body", Segoe UI Light, Segoe UI, Tahoma, Arial, Verdana, sans-serif',

                                'web_safe' => true,

                                'google' => true,

                                'monospace' => false

                                )

                        );

                return array_merge( $thefoundry, $myfont );

        }


function metro_heading( $thefoundry ) {

                $myfont = array( 'metro heading' => array(

                                'name' => 'metro heading',

                                'family' => '"metro heading", Segoe UI Bold, Segoe UI, Tahoma, Arial, Verdana, sans-serif',

                                'web_safe' => true,

                                'google' => true,

                                'monospace' => false

                                )

                        );

                return array_merge( $thefoundry, $myfont );

        }


function metro_link( $thefoundry ) {

                $myfont = array( 'metro link' => array(

                                'name' => 'metro link',

                                'family' => '"metro link", Segoe UI, Segoe UI Light, Tahoma, Arial, Verdana, sans-serif',

                                'web_safe' => true,

                                'google' => true,

                                'monospace' => false

                                )

                        );

                return array_merge( $thefoundry, $myfont );

        }

But I do not get the new fonts listed. What am I doing wrong?

Share this post


Link to post
Share on other sites

Posted · Report post

OK, so watch out for the evil /* and */ that comment our your code!

Once I fixed them everything worked :)

Share this post


Link to post
Share on other sites

Posted · Report post

It's wonderful when our clients ask and answer their own questions.

You might have been able to use Cufon fonts for this.

Share this post


Link to post
Share on other sites