summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorJelmer Snoeck <jelmer.snoeck@gmail.com>2015-08-24 22:39:25 +0100
committerJelmer Snoeck <jelmer.snoeck@gmail.com>2015-08-24 22:39:25 +0100
commitf08b5786da8646302e9d94fe048cf2d6a6130144 (patch)
tree61ad9c758efd8c42caa75361e1672b4046731fe0 /fpdf.go
parent55370a856fb5610bafac951f72016f2c94f12800 (diff)
parente3a6324d33873b0347a190bfb82d7d04315c1c85 (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 'fpdf.go')
-rw-r--r--fpdf.go13
1 files changed, 4 insertions, 9 deletions
diff --git a/fpdf.go b/fpdf.go
index 470a81b..d77fd4b 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2359,15 +2359,10 @@ func (f *Fpdf) RegisterImage(fileStr, tp string) (info *ImageInfoType) {
}
// GetImageInfo returns information about the registered image specified by
-// imageStr. If the image has not been registered, an empty structure followed
-// by false is returned. The internal error is not modified by this method.
-func (f *Fpdf) GetImageInfo(imageStr string) (info ImageInfoType, ok bool) {
- var infoPtr *ImageInfoType
- infoPtr, ok = f.images[imageStr]
- if ok {
- info = *infoPtr
- }
- return
+// imageStr. If the image has not been registered, nil is returned. The
+// internal error is not modified by this method.
+func (f *Fpdf) GetImageInfo(imageStr string) (info *ImageInfoType) {
+ return f.images[imageStr]
}
// GetXY returns the abscissa and ordinate of the current position.