📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Question re: editing html code

Options
Hi,

I was hoping that a techie could provide some guidance on the following problem:

I have a website for which I would like to include a rarely-used custom font in the body of the page. I've downloaded the font in question "Trashed"to my laptop and it's now accessible on my version of microsoft word. I would now like to use this font on my webpage - does anybody know if this is possible ? and if so - could somebody point me towards a cut&paste style editing job that will make it happen (i'm not fantastic with html yet)

Many thanks in advance for any help

Kind regards

Ed

Comments

  • weegie.geek
    weegie.geek Posts: 3,432 Forumite
    You can't *REALLY* use it for the text on your website, but you can use it in an image you'll then display on the page.

    I say you can't really, because while you CAN specify a font name for text to use, if they don't have it installed, it won't work, and who's going to download a font just to read a website?

    http://en.wikipedia.org/wiki/Font_family_%28HTML%29
    They say it's genetic, they say he can't help it, they say you can catch it - but sometimes you're born with it
  • swvillafan
    swvillafan Posts: 436 Forumite
    Part of the Furniture 100 Posts Combo Breaker
    You can't *REALLY* use it for the text on your website, but you can use it in an image you'll then display on the page.

    I say you can't really, because while you CAN specify a font name for text to use, if they don't have it installed, it won't work, and who's going to download a font just to read a website?

    http://en.wikipedia.org/wiki/Font_family_%28HTML%29

    weegie is right, unless the viewer has that font on their machine (unlikely if its custom) then it will default to Arial I believe.

    There is a possible way around it using a combination of php and javascript but if you are still learning html then it might not be suitable. Here is a link to the article if you want to take a look anyway! :)
    Useful is beautiful
  • weegie.geek
    weegie.geek Posts: 3,432 Forumite
    Good thinking. :) Assuming your webhost has GD installed, that's a possible solution, but generally you'd want to pre-render these things, it'd put quite a lot of strain on a shared webhost to dynamically generate the text for an entire website as images, on the fly like that. It'd churn through your transfer allowance too, comparatively. For things like headers etc it'd be usable though.
    They say it's genetic, they say he can't help it, they say you can catch it - but sometimes you're born with it
  • DVardysShadow
    DVardysShadow Posts: 18,949 Forumite
    edchalk wrote: »
    Hi,

    I was hoping that a techie could provide some guidance on the following problem:

    I have a website for which I would like to include a rarely-used custom font in the body of the page. I've downloaded the font in question "Trashed"to my laptop and it's now accessible on my version of microsoft word. I would now like to use this font on my webpage - does anybody know if this is possible ? and if so - could somebody point me towards a cut&paste style editing job that will make it happen (i'm not fantastic with html yet)

    Many thanks in advance for any help

    Kind regards

    Ed
    For reasons already explained, it will cost you to use this font directly in the body. Your next problem is that if you pre-render the images, it may look fine on your browser with your choice of font rendering size and your resolution - but anyone with a largescreen will probbaly find that your prerendered text image is too small - far too small. The beauty of HTML is that your users computers render the text to suit your users preferences and now you want to do away with that.

    People will probably hate the readability of your site. Do yourself and your users a favour and stick with the standards.
    Hi, we’ve had to remove your signature. If you’re not sure why please read the forum rules or email the forum team if you’re still unsure - MSE ForumTeam
  • tronator
    tronator Posts: 2,859 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    You can't *REALLY* use it for the text on your website, but you can use it in an image you'll then display on the page.

    But you don't really want to do this if you want to be found in search engines. Search bots can't read text in images.
  • weegie.geek
    weegie.geek Posts: 3,432 Forumite
    Very true. The time will come when Google starts to OCR images I'm sure, but it wouldn't do the site any good in search engine rankings right now, assuming that matters to the OP.
    They say it's genetic, they say he can't help it, they say you can catch it - but sometimes you're born with it
  • Owain_Moneysaver
    Owain_Moneysaver Posts: 11,392 Forumite
    Part of the Furniture 10,000 Posts Name Dropper
    You can embed the font in the webpage, so that the browser may download it and use it to display the text. However this will depend on the browser and the user's preferences, so don't rely on it.

    How to embed fonts:
    http://www.netmechanic.com/news/vol3/css_no15.htm (rather out of date, refers to IE4!!!)
    http://msdn.microsoft.com/en-us/library/ms533034(VS.85).aspx

    Note that fonts are copyright and you may need licencing to changed them to embedded font file format and incorporate them in webpages.

    Using images instead of text is clunky and potentially illegal under the Disability Discrimination Act.
    A kind word lasts a minute, a skelped erse is sair for a day.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.1K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.6K Spending & Discounts
  • 244.1K Work, Benefits & Business
  • 599K Mortgages, Homes & Bills
  • 177K Life & Family
  • 257.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.