bennyboer / thaw

Hierarchical organizable and versionable document tool with export to PDF
MIT License
4 stars 1 forks source link

Line height reconsiderations #21

Closed bennyboer closed 4 years ago

bennyboer commented 4 years ago

Currently we define "lineHeight" in the style file which depends on the font size used. For example when we define the font size to be 16pt, we have to change the lineHeight as well.

It would be better to have something like "lineSpacing: 1.0" where the value 1.0 means that the lines should be spaced as close together as possible. We can determine the maximum lineHeight by checking the height for one the largest characters. We could for example just check the character M. That way we don't have to specify "lineHeight".

bennyboer commented 4 years ago

Will be done by #11