July 19, 2010 at 9:31 am #109
Hi Kriesi (Servas from Munich/Bavaria),
great work, as ever, and very easy to deal with!
Only one question: Any chance for me to add Cufon fonts to the Navigation?
Thanks + Baba, JoergJuly 19, 2010 at 9:42 am #29844
At the fifth imput field from the top which is labeld: “Use the following value as the font-family of the generated font (optional)” you need to enter the word “cufon” (without quotation marks)
You then get a new JS file which you need to place in the folder framework/fonts. make sure to name it the same way as others were named:
fontname.font.js – fontname can be anything you like but .font.js is madatory
Last thing to do is to open theme_options/options.php and at arround line 59 add the array entry. (first part of each key value pair is the display name, second part is the file name without font.js)
for example if you have created a file out of arial your font file should be named: arial.font.js and the array in options.php should look like this:
$options = array( "name" => "Heading Font",
"desc" => "The Font heading utilizes the google API and allows you to use a wide range of custom fonts for your headings",
"id" => "font_heading",
"type" => "dropdown",
"std" => "josefine_small",
"subtype" => array( 'Cantarell'=>'cantarell',
'Josefin All Characters'=>'josefine',
'Josefin Common Characters'=>'josefine_small',
July 19, 2010 at 1:09 pm #29845February 1, 2011 at 5:29 pm #29846
Is it possible to use a cufon font for h1,h2,h3, etc. and another cufon font for the menu and <p> ?
Thanks a lot.February 2, 2011 at 8:20 am #29847
Yes it’s possible but I strongly advise against it because of several reasons.
1) Cufon fonts add around 50 to 100kb to your website.
2) This cause a longer loading time (of course it even gets worse when using two or more fonts)
So I wouldn’t use a second cufon font…
It’s also not easily possible to implement the font without some coding skills.February 14, 2011 at 3:49 am #29848
I need change Cufon because my blog is in spanish…
But I can’t make this change. My options.php file don’t have line 59, only have 48… and I do not see the code I have to paste.
I make correctrly a .js, but I lost in next step.
ThanksFebruary 14, 2011 at 7:59 am #29849
for CleanCut have a look at this thread: http://www.kriesi.at/support/topic/replace-cufon-font-in-cleancutFebruary 15, 2011 at 3:21 am #29850February 15, 2011 at 6:23 am #29851March 15, 2011 at 9:29 pm #29852
Hi, I am not understanding these instructions. I am using the Broadscope theme. I have made my font into a cufon file, uploaded it to broadscope–>framework–>js–>fonts, and I don’t see it in the dropdown menu located within the Theme Options panel layout & styling –> heading fonts.
Is that not the right place?March 16, 2011 at 7:00 am #29853
it’s not easily possible to add a new font to Broadscope (you can edit the option page but because of the framework option structure you’d need to delete broadscope’s sql database entries…). I’d suggest to replace a cufon file you don’t need with the new generated one (i.e rename your file to kreon.font.js and replace the original “kreon.font.js” file. In your theme options panel select Kreon to display your font.April 21, 2011 at 7:51 pm #29854
Dude, I have another problem with Cufon in pages and widgets. Look at http://www.bairesmedialab.com/quienes-somos/, where quiénes do not have tilde. I need make another changes? Where?
ThanksApril 22, 2011 at 9:43 am #29855May 26, 2011 at 4:04 am #29856
thank you, Dude for the info you gave SandeeJ, I subbed out a font for one the ones I didn’t want, and that worked great. I really like Broadscope, you guys, great work!May 26, 2011 at 9:09 pm #29857March 15, 2013 at 11:45 am #29858
Hi there, I’ve followed instructions to add a cyrillic font as cufon font in my flashlight theme but I can’t run it.
I generated js file, I put on fonts folder and I’ve modified register-admin-options to add the line code with my font family… but it’s not working at all? Any help please?
ThanksMarch 16, 2013 at 7:39 am #29859
Can you post a link to your website please? Maybe the font file path is wrong or the font family is not set to cufon?
PeterMarch 17, 2013 at 2:53 pm #29860
Font file path is right > wp-contentthemesflashlightframeworkjsfonts
The only thing I can’t do is what Kriesi suggested above.. “Last thing to do is to open theme_options/options.php and at arround line 59 add the array entry. (first part of each key value pair is the display name, second part is the file name without font.js)”
because when I add a new line with my font, website is completely down. :(
If you please take a look… here you are: http://goo.gl/P6l7TMarch 18, 2013 at 7:32 am #29861
1) Can you post a link to your cufon file (Cyrillic font).
2) If you want to add your font file to the admin menu open up wp-contentthemesflashlightincludesadminregister-admin-options.php and search for:
"subtype" => array( 'no custom font'=>'',
'Josefin All Characters'=>'josefine__1.3',
'Josefin Common Characters'=>'josefine_small__1.3',
'Reenie Beanie'=>'reeniebeanie__1.6', //number attached is a font size modifier for very small fonts ( * 1.4)
Add your font file to the array – the first value (i.e. ‘Tangerine’) is the name of the font in the option panel dropdown, the second value is the font file name (i.e. if the font file is wp-contentthemesflashlightframeworkjsfontstangerine.font.js the font name is ‘tangerine’) and the ‘__1.3′ extension is the size modifier.March 19, 2013 at 9:54 am #29862
Hi Dude, cool! I finally get a cufon font supporting cyliric on menu item and headings…
but, please, I already need some help! If you go again to the website, you’ll see you can choose different languages.
English is showing properly cufon font, but when you select Russian or Spanish, they show another font that not supports cyrilic alphabet (the previous one)! Even when my custom cufon font is selected on styling flashlight options.March 20, 2013 at 12:05 pm #29863
The theme creates a new option set for each language. Select a language from the drop-down (located at the top of the admin page) and configure all settings for this language (set your custom cufon font, etc.). Then save the settings and change the language by using the language selector drop down again. Now configure the settings for the second language (select the same font) and so on..
The topic ‘Cufon’ is closed to new replies.