summaryrefslogtreecommitdiff
path: root/font.go
AgeCommit message (Collapse)Author
2019-04-19Added full support for UTF-8 font. With MIT license.DarkFreedman
2018-12-11Fix comments according to best practices by effective go (#217)CodeLingo Bot
* Fix comments according to best practices by effective go * Update font.go * Update fpdf_test.go * Update fpdf.go * Update example.go * Update util.go
2018-09-15fixed warnings gocritic 3.3 (#192)Veselkov Konstantin
2018-03-23font: make sure error on close or write are detectedSebastien Binet
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