Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
fix osf
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoHao committed Mar 7, 2020
1 parent d19397f commit 6331a2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2018—2019 Cyano Hao and Nowar Typeface, with reserved font name “Nowar”, “有爱”, and “有愛”.
Copyright © 2018—2020 Cyano Hao and Nowar Typeface, with reserved font name “Nowar”, “有爱”, and “有愛”.

Portions Copyright 2015 Google Inc.

Expand Down
4 changes: 2 additions & 2 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from types import SimpleNamespace as Namespace

class Config:
version = "0.7.1"
fontRevision = 0.0701
version = "0.7.2"
fontRevision = 0.0702
vendor = "Nowar Typeface"
vendorId = "NOWR"
vendorUrl = "https://github.com/nowar-fonts"
Expand Down
5 changes: 5 additions & 0 deletions merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from types import SimpleNamespace as Namespace
from libotd.merge import MergeBelow, MergeAbove
from libotd.pkana import ApplyPalt, NowarApplyPaltMultiplied
from libotd.dereference import Dereference
from libotd.transform import Transform, ChangeAdvanceWidth
from libotd.gsub import GetGsubFlat, ApplyGsubSingle
from libotd.gc import Gc, NowarRemoveFeatures
Expand Down Expand Up @@ -219,6 +220,10 @@ def GenerateAsianSymbolFont(font):
numWidth = numFont['glyf'][num[0]]['advanceWidth']
changeWidth = maxWidth - numWidth if numWidth > maxWidth else 0

# dereference glyphs for futher modification
for n in num + pnum + onum + tonum:
numFont['glyf'][n] = Dereference(numFont['glyf'][n], numFont)

for n in num + tonum:
tGlyph = numFont['glyf'][n]
tWidth = tGlyph['advanceWidth']
Expand Down

0 comments on commit 6331a2a

Please sign in to comment.