diff options
author | Jelmer Snoeck <jelmer.snoeck@gmail.com> | 2015-08-24 22:39:25 +0100 |
---|---|---|
committer | Jelmer Snoeck <jelmer.snoeck@gmail.com> | 2015-08-24 22:39:25 +0100 |
commit | f08b5786da8646302e9d94fe048cf2d6a6130144 (patch) | |
tree | 61ad9c758efd8c42caa75361e1672b4046731fe0 /font.go | |
parent | 55370a856fb5610bafac951f72016f2c94f12800 (diff) | |
parent | e3a6324d33873b0347a190bfb82d7d04315c1c85 (diff) |
Merge branch 'master' into contribution-package
* master:
Clarify restrictions on OpenType fonts, namely that they must be derived from TrueType outlines, not PostScript
Change GetImageInfo to return pointer
Diffstat (limited to 'font.go')
-rw-r--r-- | font.go | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -374,10 +374,13 @@ func makeDefinitionFile(fileStr, tpStr, encodingFileStr string, embed bool, encL // gofpdf generates. See the makefont utility in the gofpdf package for a // command line interface to this function. // -// fontFileStr is the name of the TrueType (or OpenType based on TrueType, -// extension .ttf) or binary Type1 file (extension .pfb) from which to generate -// a definition file. If a Type1 file is specified, a metric file with the same -// pathname except with the extension .afm must be present. +// fontFileStr is the name of the TrueType file (extension .ttf), OpenType file +// (extension .otf) or binary Type1 file (extension .pfb) from which to +// generate a definition file. If an OpenType file is specified, it must be one +// that is based on TrueType outlines, not PostScript outlines; this cannot be +// determined from the file extension alone. If a Type1 file is specified, a +// metric file with the same pathname except with the extension .afm must be +// present. // // encodingFileStr is the name of the encoding file that corresponds to the // font. |