golang-image/font/sfnt
Denys Smirnov dd492a22e4 font/sfnt: support fonts with "true" apple version tag
OpenType specification mentions that fonts might contain Apple
version tag that is equal to "true" (see note in [1]). Currently,
the library returns a parsing error for those fonts.

CL adds Apple this version tag to the validation code and allows
fonts to omit OS/2 table, as mentioned in the TrueType spec [2].

[1] https://docs.microsoft.com/en-us/typography/opentype/spec/otff#organization-of-an-opentype-font

[2] https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6OS2.html

Change-Id: I13406fe97b091f24aaabf9b477df9c8fc8df883c
Reviewed-on: https://go-review.googlesource.com/c/146078
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2018-11-16 02:46:09 +00:00
..
cmap.go font/sfnt: use charmap EncodeRune API. 2017-04-05 22:33:02 +00:00
data.go font/sfnt: implement Font.GlyphName. 2017-02-17 10:37:04 +00:00
example_test.go font/sfnt: rename ExampleRasterizeGlyph to Example_rasterizeGlyph 2018-11-09 00:22:02 +00:00
gen.go font/sfnt: implement Font.GlyphName. 2017-02-17 10:37:04 +00:00
postscript.go font/sfnt: implement hflex and hflex1. 2017-05-23 02:19:15 +00:00
proprietary_test.go font/sfnt: implement hflex and hflex1. 2017-05-23 02:19:15 +00:00
sfnt_test.go font/sfnt: parse and expose PostScript information 2018-11-15 06:11:51 +00:00
sfnt.go font/sfnt: support fonts with "true" apple version tag 2018-11-16 02:46:09 +00:00
truetype.go font/sfnt: implement Font.GlyphAdvance. 2017-04-05 22:26:46 +00:00