Skip to content

Commit

Permalink
Remove check for lookupOrderOffset, see #274
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jan 22, 2024
1 parent 3d69968 commit ed23c86
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions font/sfnt_layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ func (sfnt *SFNT) parseScriptList(b []byte) (scriptList, error) {

r3.Seek(uint32(scriptOffset) + uint32(langSysOffset))
lookupOrderOffset := r3.ReadUint16()
if lookupOrderOffset != 0 {
return scripts, fmt.Errorf("lookupOrderOffset must be NULL")
}
_ = lookupOrderOffset
//if lookupOrderOffset != 0 {
// return scripts, fmt.Errorf("lookupOrderOffset must be NULL")
//}
requiredFeatureIndex := r3.ReadUint16()
featureIndexCount := r3.ReadUint16()
featureIndices := make([]uint16, featureIndexCount)
Expand Down

0 comments on commit ed23c86

Please sign in to comment.