summaryrefslogtreecommitdiff
path: root/font.go
AgeCommit message (Collapse)Author
2017-02-11Accept interfaces where appropriate. (#103)dchapes
* Accept interfaces where appropriate. `Fpdf.RawWriteBuf` only needs an `io.Reader`, it doesn't have to be a `bytes.Buffer`. The only reason I can see not to do this is to avoid the interface "boxing" if the caller is actually using a `bytes.Buffer`; however, since eventually this gets into `binary.Read` which takes an `io.Reader` the boxing will happen anyway (and possibly repeatedly if `readByte` gets called a number of times; I didn't bother to check). * Also use interface for segmentRead * Use read-only bytes.Reader instead of bytes.Buffer where appropriate.
2015-08-22Clarify restrictions on OpenType fonts, namely that they must be derived ↵Kurt Jung
from TrueType outlines, not PostScript
2015-07-23Add a sample Type1 font and metric file pair for testing purposesKurt Jung
2013-11-15Brush some lint off using github.com/golang/lint. This includes one breaking ↵Kurt Jung
change: WriteLinkID instead of WriteLinkId.
2013-08-02Initial commit into mercurialKurt Jung