Difference between OTF (Open Type) or TTF (True Type) font formats?

375,931

Solution 1

OTF is more likely to be a “better” font, as it supports more advanced typesetting features (smallcaps, alternates, ligatures and so on actually inside the font rather than in fiddly separate expert set fonts). It can also contain either spline (TTF-style) or Bezier (PostScript Type 1-style) curves, so hopefully you're getting the shapes the font was originally designed in and not a potentially-poorer-quality conversion.

On the other hand, if you're downloading free fonts from shovelware sites, you're unlikely to get any of that. Indeed, you may simple be getting a TTF font renamed to OTF.

Solution 2

OTF is a more recent format than TTF, so OTF has some features that TTF doesn't. (Which is a moot point if the font's creator didn't use them.)

One note from personal experience however: depending on what you're going to be doing with these fonts, I've found it's much easier to get tools that work with TTF as opposed to OTF. If you're just using them for desktop publishing / word processing, either will work fine, but if you're going to be doing anything programmatic, I'd recommend TTF just due to the higher number of tools / libraries out there.

Solution 3

Please note that when file endings are converned, both .otf and .ttf may denote fonts in the OpenType format. (See OpenType in Wikipedia – actually, this is more accurately pronounced in the German version.)

This comes a little confusing as some .ttf font files may look as if they are in legacy ANSI-Windows TrueType format, whereas in fact they may be full featured OpenType fonts.

The main difference between both flavours being that .ttf style fonts use quadratic Bézier splines whereas .otf style fonts use cubic Bézier splines. (Historically, quadratic Bézier curves have been used for the ‘legacy’ TrueType format; cubic Bézier curves have come from a PostScript background.) Cubic Béziers are potentially more accurate (every quadratic Bézier curve can be exactly reproduced with a cubic Bézier curve) but may be approximated with smaller segmented sequences of quadratic Béziers. (Also note that neither cubic nor quadratic Bézier splines may exactly reproduce a circle. There is always some approximation error.)

Another minor difference in the specification seems to be that ttf flavoured OpenType fonts may address the same glyph with several code points. Therefore, this saves some space, if e.g. the upper case versions of b, β and в (read: latin, greek and cyrillic ‘B’) have the same shape.

Solution 4

I don’t agree with those who say that OTF is the best format. TTF offers the designer the possibility to change the details of the rasterization on screen and in print (if the designer knows how to do it).

For example:

TTF vs OTF

Solution 5

I found this useful, and it answered my questions enough to stop digging deeper.

MS: What's the difference between TrueType, PostScript, and OpenType fonts?

TrueType fonts can be scaled to any size and are clear and readable in all sizes. They can be sent to any printer or other output device that is supported by Windows. OpenType fonts are related to TrueType fonts, but they incorporate a greater extension of the basic character set, including small capitalization, old-style numerals, and more detailed shapes, such as glyphs and ligatures. OpenType fonts can also be scaled to any size, are clear and readable in all sizes, and can be sent to any printer or other output device that is supported by Windows.

PostScript fonts are smooth, detailed, and of high quality. They are often used for printing, especially professional-quality printing, such as books or magazines.

Which font format will work best for me?

It depends. If you want a font that prints well and is easy to read on the screen, then consider using a TrueType font. If you need a large character set for language coverage and fine typography, then you might want to use an OpenType font. If you need to print professional-quality print publications, such as glossy magazines or commercial printing, PostScript is a good choice. For more information, see Fonts: frequently asked questions.

Share:
375,931

Related videos on Youtube

Rich Bradshaw
Author by

Rich Bradshaw

I'm a web developer from the UK. PHP, HTML5, CSS3 and jQuery-ed javascript are my specialties, thought I also dabble in Python, Bash scripting and SQL when needed.

Updated on September 17, 2022

Comments

  • Rich Bradshaw
    Rich Bradshaw over 1 year

    On a Mac, when I'm downloading fonts am often given the choice between OTF (OpenType Format) and TTF (TrueType Format).

    Is there any difference in the way ligatures work or anything between the two formats?

  • Rich Bradshaw
    Rich Bradshaw over 14 years
    That's interesting - I'd assumed OTF. Is it actually an open format?
  • KiiroSora09
    KiiroSora09 over 14 years
    Yes, it's ISO14496-22. See microsoft.com/typography/otspec . TrueType might also be considered open, for values ‘x’ of ‘open’. See developer.apple.com/textfonts/TTRefMan/index.html (and the OTF spec is also relevant as it builds on TTF). However, there is no public patent grant associated with either format and there have been patent issues in the past (see FreeType and the TT hinting bytecode instruction set).
  • Rich Bradshaw
    Rich Bradshaw over 14 years
    That's a good point actually - seems that imagemacgick works better with ttf for instance.
  • Pacerier
    Pacerier about 11 years
    Bezier splines can never reproduce a circle, this has nothing to do with it being quadratic or cubic or quartic or quintic...
  • Pacerier
    Pacerier about 11 years
    Details please..
  • Debilski
    Debilski about 11 years
    Yes, that’s also true but doesn’t matter that much in this case.
  • user1696603
    user1696603 almost 9 years
    The graphic is interesting, but to the inexperienced (like me) doesn't immediately support the claim TTF has better hinting. Actually it looks like the opposite, as the OTF row, on the right side, appears to have 4+ times the resolution and take advantage of partial shading. Please expand.
  • David C. Bishop
    David C. Bishop over 8 years
    OTF was based on TTF. Since TTF is a subset of OTF then it should support all the same features.
  • Travis Bemrose
    Travis Bemrose over 8 years
    +matt It's not that the resolution is higher - the point of this image is to show how crisp and defined the TTF braille dots are, whereas the OTF ones are blurred. Many are unreadable. In the top example, the font designer's hinting was heeded by the rasterization engine (when it scaled them to a resolution that was not an integer multiple of their base resolution).
  • Shaun Bouckaert
    Shaun Bouckaert almost 7 years
    I've got two versions of a font, one with otf and one with ttf. Both use otf layouts, but the otf one uses postscript outlines and the ttf one uses ttf outlines. The ttf one is also reported as being signed in windows.
  • Jakub
    Jakub about 6 years
    See this post for a discussion on the difference between ttf and otf hinting. TTF and OTF uses different approaches to hinting. OTF relies on the expressiveness of the font and intelligence of the rasterizer to reduce the need for hinting, this allows OTF to have reduced hinting information. Although in some use cases this reduced hinting can cause problems. Since OTF fonts can use either TrueType style or PostScript style hinting, it isn’t strictly true that TTF hinting is better than OTF hinting.