Use of Non Standard Fonts on Web Interface

Posted on 2007-10-06
Last Modified: 2010-08-05
Hello All,

A client of ours wants to build a UI for client customization. Ok, no problem. However, he wants to be able to give the users the ability to change the fonts on the fly to any font he wants without using Flash.  Well, I have done a fair amount of research and I am at a loss for an acceptable solution to this.  I did find something similar where I can change an editor to fonts that are not installed on my system and they are displaying correctly, and I don't know how they are pulling it off.

Please take a look at this URL and let me know if you can figure out how they are doing this...

Thanks Much!
Question by:thebrainman
    LVL 51

    Expert Comment

    > ..  to give the users the ability to change the fonts on the fly to any font he wants ..
    this is a standard feature in any browser (back to NSCA Mosaic:), hence no need to program anything
    LVL 2

    Author Comment

    Ok maybe I should have been a little more explicit.  I meant non system default fonts.  So basically any font should be able to be viewed on the screen no matter if the user has the font installed or not.  Take a look at the URL I had posted previously, because they are using fonts that I do not have installed in my system, but they are being displayed on my PC?

    LVL 51

    Accepted Solution

    embeded fonts in HTML can be used as follows (just HTML snippets):

    <LINK rel = "fontdef" src="url/YourFontName.pfr">
    <!-- above is IE only, IIRC ... ->
    <STYLE TYPE="text/css"><--!
    @font-face {
      font-family: YourFont;
      font-style:   normal;
      font-weight: normal;
    <!-- EOT is embedded open text format -->
    <font face="YourFont">
    text displayed with your font
    <!-- where the font tag is depricated now, but your're asking for non-standards anyway ;-) -->

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! How to Know You are Making a Difference at EE In August, 2013, one …
    A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
    Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now