font family and size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KeredDrahcir
    Contributor
    • Nov 2009
    • 426

    font family and size

    I'm trying to use a non web safe font on my website so as a backup if users don't have that font, I've got the closest match web safe font as the second option in the font family.
    The font I'm using is quite a small font and the web safe backup is larger so if the screen reverts to the web safe font, it screws up my layout. Is there a way to set a separate size to each option in the font family or something like that?

    I'm willing to use JavaScript if I need to.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    you might try the CSS3′s @font-face. for a start you might have a look at: http://codechirps.com/how-to-safely-...eb-safe-fonts/

    Comment

    • KeredDrahcir
      Contributor
      • Nov 2009
      • 426

      #3
      I tried that out and it stopped useing the font I wanted even on computers that had the font installed. The site you suggested is the one I went to.
      If you know any other site that shows how to do it, I may be able to sort it out.

      Comment

      • ariful alam
        New Member
        • Jan 2011
        • 185

        #4
        Have a look @ Adjust font-size section in http://www.miltonbayer.com/font-face/

        Hope, helps :)

        Comment

        • KeredDrahcir
          Contributor
          • Nov 2009
          • 426

          #5
          That looks good. I'll give it a try. That site also might get me up and running with @font-face. I'll let you know how I get on.

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5388

            #6
            the main point with @font-face is to have the font-kit which requires the license to distribute the font. here are some http://www.fontsquirrel.com/fontface

            Comment

            • KeredDrahcir
              Contributor
              • Nov 2009
              • 426

              #7
              I'm hoping to use is Balthazar which appears to be freeware. Do you know if this is right and if so am I able to use it?

              Comment

              • gits
                Recognized Expert Moderator Expert
                • May 2007
                • 5388

                #8
                i dont know anything regarding the license - but u may start to crawl the web for it from here: http://www.google.com/webfonts/specimen/Balthazar - there is even a name of an author of the font that might help to get more information

                Comment

                • KeredDrahcir
                  Contributor
                  • Nov 2009
                  • 426

                  #9
                  I'll have a look. I should be able to use something that's freeware shouldn't I?

                  Comment

                  • gits
                    Recognized Expert Moderator Expert
                    • May 2007
                    • 5388

                    #10
                    it all depends on the license

                    Comment

                    • Fary4u
                      Contributor
                      • Jul 2007
                      • 273

                      #11
                      here is the code which help to solve this problem. save this font file into you web directory then you don't have any problem.
                      Code:
                      @font-face {
                      	font-family: Candara;
                      	src: url("candara.ttf"); 
                      	format("truetype");
                      	font-size: 17px;
                      	word-spacing: -1px;
                      }

                      Comment

                      • KeredDrahcir
                        Contributor
                        • Nov 2009
                        • 426

                        #12
                        Thanks. I've managed to get it working. It's really just the license that concerns me. I've found a lot of freeware fonts but usually the licence isn't with them.

                        Comment

                        Working...