File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3535
3636setup (
3737 name = "dwriteshapepy" ,
38- version = '1.0.3 ' ,
38+ version = '1.0.4 ' ,
3939 description = "Python extension for Windows DirectWrite shaping, modeled after uharfbuzz " ,
4040 long_description = long_description ,
4141 long_description_content_type = 'text/markdown' ,
Original file line number Diff line number Diff line change @@ -304,7 +304,8 @@ bool Font_::SetVariations(const std::vector<hb_variation_t> &axisValues)
304304 for (auto & it : axisValues)
305305 {
306306 DWRITE_FONT_AXIS_VALUE value;
307- value.axisTag = static_cast <DWRITE_FONT_AXIS_TAG>(it.tag );
307+ // DWrite tags are opposite HarfBuzz tags
308+ value.axisTag = static_cast <DWRITE_FONT_AXIS_TAG>(SWAPL (it.tag ));
308309 value.value = it.value ;
309310 dWriteAxisValues.push_back (value);
310311 }
You can’t perform that action at this time.
0 commit comments