[feaLib] Set RangeStart/RangeEnd as float
Fixes the one failing test after previous commit.
This commit is contained in:
parent
cc76169074
commit
d0aaf1bceb
@ -971,8 +971,8 @@ class Parser(object):
|
|||||||
location = self.cur_token_location_
|
location = self.cur_token_location_
|
||||||
DesignSize = self.expect_decipoint_()
|
DesignSize = self.expect_decipoint_()
|
||||||
SubfamilyID = self.expect_number_()
|
SubfamilyID = self.expect_number_()
|
||||||
RangeStart = 0
|
RangeStart = 0.
|
||||||
RangeEnd = 0
|
RangeEnd = 0.
|
||||||
if self.next_token_type_ in (Lexer.NUMBER, Lexer.FLOAT) or SubfamilyID != 0:
|
if self.next_token_type_ in (Lexer.NUMBER, Lexer.FLOAT) or SubfamilyID != 0:
|
||||||
RangeStart = self.expect_decipoint_()
|
RangeStart = self.expect_decipoint_()
|
||||||
RangeEnd = self.expect_decipoint_()
|
RangeEnd = self.expect_decipoint_()
|
||||||
|
@ -142,7 +142,7 @@ class BuilderTest(unittest.TestCase):
|
|||||||
feapath = self.getpath("%s.fea" % name)
|
feapath = self.getpath("%s.fea" % name)
|
||||||
addOpenTypeFeatures(font, feapath)
|
addOpenTypeFeatures(font, feapath)
|
||||||
self.expect_ttx(font, self.getpath("%s.ttx" % name))
|
self.expect_ttx(font, self.getpath("%s.ttx" % name))
|
||||||
# Check that
|
# Check that:
|
||||||
# 1) tables do compile (only G* tables as long as we have a mock font)
|
# 1) tables do compile (only G* tables as long as we have a mock font)
|
||||||
# 2) dumping after save-reload yields the same TTX dump as before
|
# 2) dumping after save-reload yields the same TTX dump as before
|
||||||
for tag in ('GDEF', 'GSUB', 'GPOS'):
|
for tag in ('GDEF', 'GSUB', 'GPOS'):
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
<DesignSize value="10.0"/>
|
<DesignSize value="10.0"/>
|
||||||
<SubfamilyID value="0"/>
|
<SubfamilyID value="0"/>
|
||||||
<SubfamilyNameID value="0"/>
|
<SubfamilyNameID value="0"/>
|
||||||
<RangeStart value="0"/>
|
<RangeStart value="0.0"/>
|
||||||
<RangeEnd value="0"/>
|
<RangeEnd value="0.0"/>
|
||||||
</FeatureParamsSize>
|
</FeatureParamsSize>
|
||||||
<!-- LookupCount=0 -->
|
<!-- LookupCount=0 -->
|
||||||
</Feature>
|
</Feature>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user