www.webdeveloper.com
Results 1 to 4 of 4

Thread: Up for a challenge? Multi font sizes for 1 block of text on different fonts.

  1. #1
    Join Date
    Nov 2007
    Location
    FL
    Posts
    71

    Up for a challenge? Multi font sizes for 1 block of text on different fonts.

    I think I have a tough one.

    In dreamweaver I have the option to pick more than one font so that I make sure any user that views my page will use one of the fonts. I guess the browsers check to see if the user has the first font in my list and if they don't it checks to see if they have the 2nd in my list and so on.

    I can't get this to work my dreamweaver. I am trying to make the same block of text have different sizes depending on if the user has the first text or not.

    Like for example

    My pc has Text1 and Text2 but not very many people have Text1 but everyone has Text2

    At 100% Text1 is this size

    Text1Text1Text1Text1Text1Text1Text1

    and at 100% Text2 is this size

    Text2Text2Text2Text2Text2Text2Text2

    So what I am trying to do is set Text1 to 170% so that everyone one who has Text1 on there pc can see it at a large enough size but in doing this it also sets Text2 to 170% which makes it way way to large. It's the same paragraph. The only reason anyone would ever see Text2 is if they don't have text one.

    I can only test this in dreamweaver without uninstalling and reinstalling fonts. If you look at my site and the text is normal size and matches my images you are looking at chiller. If you look at my site and the text is HUGE and doesnt match anything then you don't have chiller. I would like to make that really huge text smaller and look better on my page for you

    Do you guys have any ideas on how this could be done?
    My current project http://www.gamerunion.com Any and all help is welcome!

  2. #2
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    I do have Chiller, and can see what you mean. Chiller's body size is much smaller due to its large ascenders and descenders. As far as I know, there is no way of detecting the font being used by the browser, and certainly no way of associating different sizes with each alternate font in css. I do have other fonts on my system that look around a similar size to Chiller, but they are not widespread either. About the only thing I could suggest is making the second choice "Comic Sans MS" - it is still larger but looks a little more in keeping with the overall style.

  3. #3
    Join Date
    Nov 2007
    Location
    FL
    Posts
    71
    Thanks for the idea I may try that out.

    Someone gave me this link

    http://www.mikeindustries.com/blog/sifr/

    have you ever heard of it? I think it will be good because my pages don't have very much text only a few paragraphs.
    My current project http://www.gamerunion.com Any and all help is welcome!

  4. #4
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    I have heard of sIFR, and have seen it used on some sites. Was going to suggest that as an alternative, but didn't have a link for it. As long as the user has flash installed and javascript enabled it might work ok, but could slow down the page load considerably. Using this method, the flash would be used even if the user has the correct font on their system.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles