summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpdf.go10
-rw-r--r--utf8fontfile.go4
2 files changed, 7 insertions, 7 deletions
diff --git a/fpdf.go b/fpdf.go
index 7859467..cd87ad9 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -1736,9 +1736,9 @@ func (f *Fpdf) addFontFromBytes(familyStr, styleStr string, jsonFileBytes, zFile
if utf8Bytes != nil {
- if styleStr == "IB" {
- styleStr = "BI"
- }
+ // if styleStr == "IB" {
+ // styleStr = "BI"
+ // }
Type := "UTF8"
reader := fileReader{readerPosition: 0, array: utf8Bytes}
@@ -3995,8 +3995,8 @@ func (f *Fpdf) generateCIDFontMap(font *fontDefType, LastRune int) {
previousKey = key
}
nextKey = key + cws
- ui := ws.getIndex("interval")
- ui = ui + 1
+ // ui := ws.getIndex("interval")
+ // ui = ui + 1
if ws.getIndex("interval") >= 0 {
if cws > 3 {
isInterval = true
diff --git a/utf8fontfile.go b/utf8fontfile.go
index 964e919..0894701 100644
--- a/utf8fontfile.go
+++ b/utf8fontfile.go
@@ -863,8 +863,8 @@ func (utf *utf8FontFile) parseHMTXTable(numberOfHMetrics, numSymbols int, symbol
}
}
}
- data := utf.getRange(start+numberOfHMetrics*4, numSymbols*2)
- arr = unpackUint16Array(data)
+ // data := utf.getRange(start+numberOfHMetrics*4, numSymbols*2)
+ // arr = unpackUint16Array(data)
diff := numSymbols - numberOfHMetrics
for pos := 0; pos < diff; pos++ {
symbol := pos + numberOfHMetrics