Skip to content

Commit

Permalink
GH-80 fix DW width conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Corless committed Mar 1, 2021
1 parent 8dc9533 commit d4b4492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ protected void parseWidths() {
}
if (library.getObject(entries, DW_KEY) != null) {
defaultWidth =
((Number) library.getObject(entries, DW_KEY)).floatValue();
((Number) library.getObject(entries, DW_KEY)).floatValue() * 0.001f;
}

if (fontDescriptor != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public FontFile deriveFont(float defaultWidth, float[] widths) {
if (widths != null) {
font.widths = widths;
}
font.defaultWidth = defaultWidth * 0.001f;
font.defaultWidth = defaultWidth;
return font;
}

Expand Down

0 comments on commit d4b4492

Please sign in to comment.