Not enough documentation - and where to put the fonts?

mgifford - November 4, 2009 - 03:21
Project:Dynamic Rendering
Version:6.x-1.x-dev
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

The main README.txt file should have first of all explain that you need to download the sIFR library & copy sifr.js & sIFR-print.css (if using sIFR 2) into a sifr directory that you've just created.

I really prefer external libraries like this to live in /sites/all/libraries/

I haven't played with sIFR 3, but would be useful to let us know how stable that is.

Took me a while to figure out that I had to upload flash fonts. However, why the script didn't alert me when I uploaded a .ttf files I don't know.

It doesn't seem like there is any way to have both sIFR 2 & sIFR 3 libraries at one time, however, since the .js/.css is getting picked up from the sIFR-2.0.7 directory in the source code:
/sites/all/modules/render/sIFR-2.0.7/sIFR-print.css
/sites/all/modules/render/sIFR-2.0.7/sIFR-screen.css
/sites/all/modules/render/sIFR-2.0.7/sifr.js

Rather than the /sites/all/modules/render/sifr directory I was told to create and copy files over to.

In the end I couldn't get anything to show up different on the site. Possibly because I didn't get the selector references right. However, the examples provided:

The following are example selectors based on the default Garland theme:

* Site title
* Page title
* Node titles
* Block titles
* Comment titles

don't seem to have links with any value in them. They just go to the same page (but without the data you've just filled in with the form).

Would appreciate better docs to be able to start using this neat module.

#1

Clamshell - November 4, 2009 - 05:09

You don't use ttf files for sifr . You must convert them from ttf to SWF or flash. The flash version that you convert to must be compatible with the sifr plugin that you are using. If you don't have a flash license; then you can you use an online sifr generator program. I would recommend using http://www.sifrgenerator.com/. Make sure to be cognisant of the sifr plugin that you plan to use for the rule that you are defining. Fonts that are generated for sifr2 will not work with sifr3 defined rules and vice versa. You can specify the type of sifr version for the font on the site I have mentioned above. Otherwise if you have flash you need to use the delivered flash files from the dynamic rendering packaged files to load these custom fonts into. I have found that is easier to just use the sifrgenerator site.

In order to change the site title, page title, etc you must find the css for this theme and determine what object within the theme's css file correlates to the site title etc. This css defined element that correlates to the site title for example will be part of the rule that you define.

Good luck....

Steve

#2

mgifford - November 4, 2009 - 15:02

Thanks for the link to sifrgenerator.com link! That helps a lot.

Just realized now from your email that there is a difference in sifr formats not just in the javascript library I downloaded.

I was just hoping for some examples to work from. The docs need a bunch of work.

So if I want to have the titles of the blocks in Garland highlighted I'd use:
#block>h2

If I want the breadcrumbs to use sifr fonts I'd use:
#breadcrumb

Just looking for some examples and hoping that they make it back into the package in the next release.

#3

Clamshell - November 4, 2009 - 15:41

Here is an example that I am working on for a customer's site.

Below is text from the style.css file for the theme that I am working on:
_____________________________________________________
.art-Logo-text, .art-Logo-text a
{
font-family:PaintyPaint,Arial, Helvetica, Sans-Serif;
font-size: 36px;
font-style: normal;
font-weight: normal;
padding:0;
margin:0;
color: #469627 !important;
}

_________________________________________________

I used the .art-logo-text as the CSS Selector for the rule. I then adjusted the rule's text accordingly with the swf font that I previously uploaded.

I agree with you that the Dynamic Rendering module is not very clear on how to build the rules. I think it makes some assumptions that you would already have working knowledge of using sifr outside of this module. Don't feel bad; it took me a couple of days of trying different things to get this to work. I am just glad that I can share my experiences so others aren't hunting and pecking like I was.

Also, keep in mind that if you plan on using dynamic rendering to render text on links; be aware that there appears to be a bug that it doesn't fully work within ie 6 and 7. I have had some success using the sifr3 plugin release 436. I currently have an open case with the maintainer of this project.

#4

mgifford - November 5, 2009 - 04:35

Thanks for this!

#5

Clamshell - November 6, 2009 - 02:16

My pleasure.... Share the wealth... I just wish I could get the maintainer of this project to respond to me......

#6

mgifford - November 6, 2009 - 02:40

@sun's been pretty busy doing D7 work I believe.

#7

Clamshell - November 19, 2009 - 03:35

Found that cufon doesn't have the link problem within ie! Cufon uses vector graphics which appear to not have the issue. Until sifr and dynamic render can figure this out I will use the cufon module. I would try this module as opposed to screwing around with sifr2 or 3.

 
 

Drupal is a registered trademark of Dries Buytaert.