Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » SiFR Font Size

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1134 Views
  • Valorinbattle
    Avatar
    Community Member
    95 Posts

    SiFR Font Size Link to this post

    I've installed the SIFR module and got it working and correcting replacing the font with color, background, etc... But for some reason the size is just showing up real tiny, like maybe even 8px or so. I'm replacing the H1 font and I've changed that in typography.css and I've even add another div class around the actual content field and have tried setting the font size in that, but none of those settings seem to affect the font size. What am I missing?

    Thanks for the help!

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: SiFR Font Size Link to this post

    Have you got a height or a width set on the header? I think that causes issues since it tries to shrink or stretch the font to fit those dimensions. I haven't used the module for a while, I personally prefer Cufon or using @font-face now.

  • Valorinbattle
    Avatar
    Community Member
    95 Posts

    Re: SiFR Font Size Link to this post

    Thanks WillR. Do you have instructions for integrating Cufon or @font-face into Silverstripe? I'm just looking to do some basic font replacements. Thanks!

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: SiFR Font Size Link to this post

    Its pretty straight forward, using SilverStripe doesn't change the implementation much. See

    http://github.com/sorccu/cufon/wiki/usage
    https://developer.mozilla.org/en/CSS/@font-face

  • Valorinbattle
    Avatar
    Community Member
    95 Posts

    Re: SiFR Font Size Link to this post

    Willr, I've been trying to get the @font-face to work and just can't seem to get it working.
    From what I can tell, I add the @font-face css rules into my layout.css file
    But then how do I get say the H1 text from a certain page type to call that @font-face rule and display the H1 text?

    Sorry, this is probably pretty obvious.
    Thanks.

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: SiFR Font Size Link to this post

    Once you have the @font-face then you just refer to it like a standard font. font-family: MyFont, serif;

    Lots of good articles on the web that can explain it better than I can http://www.css3.info/preview/web-fonts-with-font-face/

  • Valorinbattle
    Avatar
    Community Member
    95 Posts

    Re: SiFR Font Size Link to this post

    Thanks Willr. I think I've got it figured out now - it's working on IE, Safari, and Chrome, but it's not rendering on Firefox 3.6.10 for some reason. Thanks for your help though.

    ~ James

  • kcd
    Avatar
    Community Member
    54 Posts

    Re: SiFR Font Size Link to this post

    I just placed some instructions for Cufon here

    http://www.silverstripe.org/general-questions/show/8349#post297480

    May be useful to someone

    1134 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.