Skip to content

Commit

Permalink
feat(measurements): Add ‘twip’ unit
Browse files Browse the repository at this point in the history
Used in DOCX and some other document formats as a unit of measurement
for typesetting purposes.
  • Loading branch information
alerque committed Apr 27, 2021
1 parent d81b93a commit cf9d5a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 41,10 @@ SILE.registerUnit = function (unit, spec)
units[unit] = spec
end

units["twip"] = {
definition = "0.05pt"
}

units["mm"] = {
definition = "2.8346457pt"
}
Expand Down

0 comments on commit cf9d5a7

Please sign in to comment.