Trying to use Cufon for some fancy fonts.
Permalink 1 user found helpfulCan anyone help and see what I'm doing wrong?
The folder is currently sat in my custom them folder, but I have been moving it around and its not being picked up.
when put in the themes folder, it just ends up registering as another theme. I don't think that right.
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- Site Header Content //-->
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
<?php Loader::element('header_required'); ?>
<link rel="stylesheet" media="screen" type="text/css"
href="<?php echo $this->getStyleSheet('main.css')?>" />
<link rel="stylesheet" media="screen" type="text/css"
href="<?php echo $this->getStyleSheet('typography.css')?>" />
<?php Loader::element('header_required'); ?>
<script src="<?php echo $this->getThemePath() ?>
/cufon/cufon-yui.js" type="text/javascript">
</script>
<script src="<?php echo $this->getThemePath() ?>/cufon
/Broken_life_400.font.js" type="text/javascript">
</script>
<script type="text/javascript">
Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('cufon');
</script>
</head>
<body>
<div id="page">
<div id="header">
<?php
$a = new Area('Header');
$a->display($c);
?>
</div>
<div id="page_edge" class="drop_shadow">
<div id="content_area" class="inner_shadow">
thanks very much, I will give it a shot.
just a quick question about the add-on, before I "Add it on", is it a component that allows for all forms of TTFs or are there just a select group of fonts you can use? I need a specific font type.
Ben.
Cufon only supports TrueType (TTF), OpenType (OTF), Printer Font Binary (PFB) and PostScript fonts.
If you looking at font replacement @font-face is a great alternative and works on most browsers now (there are .htc fixes to make it work in IE6 & 7 as well)
Oh and if you use Cufon get the latest version as IE9 has a wobbler with the previous ones.
Best wishes,
Ben.
Glad your liking the community. Feel free to pm me any you need ;)
Many thanks
Mat
steve
Many thanks
Mat
I understand it works great and it probably "concrete5 easy".
steve