We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20792c1 commit 8b738eeCopy full SHA for 8b738ee
2 files changed
setup.py
@@ -35,7 +35,7 @@
35
36
setup(
37
name="dwriteshapepy",
38
- version= '1.0.3',
+ version= '1.0.4',
39
description="Python extension for Windows DirectWrite shaping, modeled after uharfbuzz ",
40
long_description=long_description,
41
long_description_content_type='text/markdown',
src/cpp/DWriteShapeLib.cpp
@@ -304,7 +304,8 @@ bool Font_::SetVariations(const std::vector<hb_variation_t> &axisValues)
304
for (auto& it : axisValues)
305
{
306
DWRITE_FONT_AXIS_VALUE value;
307
- value.axisTag = static_cast<DWRITE_FONT_AXIS_TAG>(it.tag);
+ // DWrite tags are opposite HarfBuzz tags
308
+ value.axisTag = static_cast<DWRITE_FONT_AXIS_TAG>(SWAPL(it.tag));
309
value.value = it.value;
310
dWriteAxisValues.push_back(value);
311
}
0 commit comments