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 /makefont | |
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 'makefont')
-rw-r--r-- | makefont/makefont.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/makefont/makefont.go b/makefont/makefont.go index d3ea19f..eb2993e 100644 --- a/makefont/makefont.go +++ b/makefont/makefont.go @@ -14,7 +14,15 @@ func errPrintf(fmtStr string, args ...interface{}) { func showHelp() { errPrintf("Usage: %s [options] font_file [font_file...]\n", os.Args[0]) flag.PrintDefaults() - errPrintf("Example: %s --embed --enc=../font/cp1252.map --dst=../font calligra.ttf /opt/font/symbol.pfb\n", os.Args[0]) + fmt.Fprintln(os.Stderr, "\n"+ + "font_file is the name of the TrueType file (extension .ttf), OpenType file\n"+ + "(extension .otf) or binary Type1 file (extension .pfb) from which to\n"+ + "generate a definition file. If an OpenType file is specified, it must be one\n"+ + "that is based on TrueType outlines, not PostScript outlines; this cannot be\n"+ + "determined from the file extension alone. If a Type1 file is specified, a\n"+ + "metric file with the same pathname except with the extension .afm must be\n"+ + "present.") + errPrintf("\nExample: %s --embed --enc=../font/cp1252.map --dst=../font calligra.ttf /opt/font/symbol.pfb\n", os.Args[0]) } func tutorialSummary(f *gofpdf.Fpdf, fileStr string) { |