[Pro] Web Fonts Action only works on back HTML text layer

Hi there,

I am developing a site in Freeway Pro 5.6.4 and I wish to use some custom fonts in HTML text. I am using the Web Fonts Action v1.2 to add the fonts to be embedded and all looked good until I used more than one custom font on a page. It seems only the custom font in the back most layer of the page is actually applied.

Have a look at http://dev.emerge3d.com/ as an example. On page 1, item2 is the back layer. On page 2, item3 is the back layer. On page 3, item4 is the back layer. Notice that the correct font is only used the respective item in each page. At least that is how it looks on all machines (real & virtual) I have checked on.

Is there any way around this? Am I doing something wrong? On my site I wish to have a custom font on the master page (which is of course displayed on all pages which use this) and at least one custom font on most pages.

I also notice that the custom fonts are not applied at all in IE using Windows XP & 7, Firefox and other browsers work fine on Mac & PC.

Cheers, Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Paul,

as far as I remember, it is necessary to create for each desired Font variation (Medium, Condensed, Bold, Italic …) a specific Font-Set for it and it is necessary to shoot all the resources (.eot, .ttf) on the server, so adding the action to item3, choosing the Mavern Pro Medium stuff and apply the built Style to that box should do the Mavern Pro Medium.

So the key is the multiple use of the action on a page.

With PC stuff I’m unsure as well, but I thought I tested it on Firefox and it worked well. Can’t judge IE7 cause I haven’t got a version of it anymore (IE8 on XP should work).

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for the reply Thomas.

I have created the Regular, Bold & Medium font sets (.eot + .ttf) and applied the action to all the fonts on the page (regular set applied to regular web font, medium set to medium web font etc). All resources are uploaded to the server. I am starting to think it is a limitation of Web Fonts but I can’t find any reference to this ever been an issue.

Cheers, Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes there only appears to be a reference to the regular version

@font-face { font-family: Mavern Pro Regular; src:url("Resources/MavenProRegular.eot"); src:local("Mavern Pro Regular"), url("Resources/MavenProRegular.ttf"); }

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes exactly David,

In page 2 only the medium version is referenced and in page 3 only the bold version is referenced.

Then with pages 4, 5 & 6 which I have added manually and pasted…

@font-face { font-family: Mavern Pro Regular; src:url(“Resources/MavenProRegular.eot”); src:local(“Mavern Pro Regular”), url(“Resources/MavenProRegular.ttf”); }
@font-face { font-family: Mavern Pro Medium; src:url(“Resources/MavenProMedium.eot”); src:local(“Mavern Pro Medium”), url(“Resources/MavenProMedium.ttf”); }
@font-face { font-family: Maven Pro Bold; src:url(“Resources/MavenProBold.eot”); src:local(“Maven Pro Bold”), url(“Resources/MavenProBold.ttf”); }

…into the 3 files, everything works perfect!!! For me this kinda makes the Web Fonts Action a little useless.

Cheers, Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Paul,

There appears to be an issue with the way that Freeway creates font sets.

Using the fonts you mention (incidentally you called it Mavern rather than Maven in the font set although this shouldn’t make much difference) if you create a font set for each of the three font styles (regular, medium and bold) you’ll notice that the application automatically adds the base font name as the first entry in the font set rather than the chosen style. So for example if you try and make a font set using ‘Maven Pro Bold’ Freeway will add ‘Maven Pro’ as the first font in the set.

This is fine in the design view as Freeway is aware that the font should display on screen using the chosen font (Maven Pro Bold) but when previewed in the browser the CSS style created is for the base font (Maven Pro) and the text will look wrong.

Here’s what I would suggest you try as a workflow until this issue is resolved;

  1. Locate and download your required Web Fonts. You will need at least EOT and TTF (or OTF) file formats

  2. Install a single copy of each font style onto your system. We’ll be doing this using the standard Font Book application.

  3. In Freeway create a font set for each font style you’ll be using. For example regular, medium, bold, etc.

    3.1 Select Edit > Font Sets and click on the New… button

    3.2 In the Name field give the font set a suitable name - ideally based on the font and style. Mavern Pro Bold for example

    3.3 Select the screen font you want to use for the font set. In this example we’ll be using Mavern Pro Bold again.

    3.4 BUG: Freeway inserts the name of the font in the fonts list but will only add the name of the base font and NOT the variant we want.

    3.5 Delete the incorrect font entry Freeway has entered as well be adding our own

    3.6 Back in Font Book select the font you want to add to the font set and select Preview > Show Font Info

    3.7 The technical information will display for the font. look for the entry called ‘Postscript name’ and copy the text on the right of this to the clipboard. For example MavenProRegular

  4. Back in Freeway paste the Postscript font name we copied to the clipboard into the fonts list field.

  5. Add any other fonts to the font set as required. For example: MavenProRegular, Helvetica, Arial

  6. TIP: For testing purposes it is worth adding a completely inappropriate font as the second font in the font set so we can easily spot any problems while testing. For example: MavenProRegular, Times, Arial

  7. Repeat this process (steps 3 to 6) for each font style you want to add.

  8. Style your text in your site using the fonts sets we’ve just created.

  9. Apply the WebFonts action to each text box that contains a font set

  10. In the Actions palette select the font set used in the text box, for example Mavern Pro Bold

  11. You can now associate the EOT and TTF (or OTF) font files with this font by adding them to the Actions palette

  12. Switch back to Font Book and disable all of the fonts used by selecting the fonts and choosing Edit > Disable (name of font or family)

  13. Back in Freeway publish and preview your site in your favourite browser. As we chose an inappropriate font as our fallback (step 6) any problems should be easy to spot.

  14. Your fonts should now be displayed using the attached web fonts rather than the fonts we had previously installed.

  15. Phew, well done!


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes - correct Tim. I got it to work last night but haven’t had (fortunately :wink: the time to formulate it. I’ll take yours and translate it into german to put it on my page if this is OK?

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Please do Thomas.
Regards,
Tim.

On 23 Mar 2012, at 16:30, Thomas Kimmich wrote:

Yes - correct Tim. I got it to work last night but haven’t had (fortunately :wink: the time to formulate it. I’ll take yours and translate it into german to put it on my page if this is OK?


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Tim, thanks very much for step by step guide.

I have applied this - double, tripled checked and still the embedded fonts are only applied to the back most HTML box! Added another font, Fertigo Pro Regular.

I just don’t get it.

If I was to add the @font-face line of code for all fonts used on a page through HTML Markup…, where do I put this?

Cheers, Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK - just to make sure that this FONT should work I wrapped it in an example and brought it to my server:

http://www.kimmich-dm.de/webfonts/maven.html

and that’s how I set the Font-Sets.

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thomas I can see it has worked perfectly in your example.

More head scratching…

I have put my project file up if you or anyone else wants to look at it to see where I have gone wrong.

http://dev.emerge3d.com/font_test.freeway

Cheers, Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

More head scratching…

Why? The only thing you did is “not reading and following advices”. This is nothing personal, but if there is help why do you ignore it?

If you read 3.3 on Tim’s big explanation and have a look at my screener, I can’t understand why you still have something different in your example, so brief:

If you write

MavenProBold (one word) this is pretty much the same than a broken link to an image.

but if Tim says (and my screener too)

Maven Pro Bold (Maven Space Pro Space Bold), why don’t you just change this???

That’s the rat in your artwork - nothing else.

So just add the spaces, relink the .eot and .ttf back into the action and I see not any reason why this shouldn’t work.

Sometimes Actions are limited, but sometimes 99% of the mistakes are sitting in front of the screen :slight_smile:

Hope this helps you out.

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

“not reading and following advices”.

So young Thomas, I take it not heeding the advice of point 3.4 (the FW BUG) was a bobo. Taking your advice I have reset the entry to Font List field to include spaces (not using the PS name as stated in point 4) and… hey presto it still don’t work, even after resetting the cache etc. Maybe I read this wrong and if so I sincerely apologise.

Anyways, drop kicking Wed Fonts action into touch (a rugby term for the uninitiated) and pasting the following into HTML Markup before …

…all works perfecto!

You are right about some actions been limited, my whole point from the start was that @font-face is only applied to one HTML layer on the page with this action (in my case) or is this just the way it works?

So case closed and thank you all for advice & feedback, greatly appreciated.

Cheers, Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

this seems to be missing from the above post…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

hmmm and again, lets take some geeky stuff out & try again…

@font-face { font-family: FertigoPro-Regular; src:url(“Resources/fertigo-webfont.eot”); src:local(“FertigoPro-Regular”), url(“Resources/fertigo-webfont.ttf”); }
@font-face { font-family: MavenProRegular; src:url(“Resources/maven_pro_regular-webfont.eot”); src:local(“MavenProRegular”), url(“Resources/maven_pro_regular-webfont.ttf”); }
@font-face { font-family: MavenProMedium; src:url(“Resources/maven_pro_medium-webfont.eot”); src:local(“MavenProMedium”), url(“Resources/maven_pro_medium-webfont.ttf”); }
@font-face { font-family: MavenProBold; src:url(“Resources/maven_pro_bold-webfont.eot”); src:local(“MavenProBold”), url(“Resources/maven_pro_bold-webfont.ttf”); }


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Paul,

try the following file (based on yours) and let me know if it works for you. It worked perfect locally here. It contains the FONTs I used.

http://dl.dropbox.com/u/8231701/Paul.zip

The Fertigo is as far as I saw a paid one so I haven’t had a chance to try this.

Probably a word to Font-Squirrel:

There are a few Fonts there that are disputable. If possible, try to choose your basic FONT on Browse Fonts - Google Fonts and convert them to .eot using ttf2eot on the web!

Both is recommended cause I never had any bigger issues with it. For the MAVEN in this case it doesn’t matter cause they had been identical.

If this does not work, you should shoot me your desired FONTs so I’ll have a go with them.

To deal with pure code is of course acceptable as well.

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for all your feedback on this Thomas.

I will come back to this at a later date as using an action is preferred over the pure code route but I gotta start on a new project now.

Cheers, Paul


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options