Skip to content

Commit 7e6b712

Browse files
release 1.1.1
1 parent a2dac30 commit 7e6b712

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Change Log
22

3+
## 1.1.1
4+
5+
* Floor the optimal `font-size` to avoid rounding errors. Thanks to @Robinfr for PR #2.
6+
37
## 1.1.0
48

5-
* Support `lineheight`
9+
* Support `line-height`
610

711
## 1.0.0
812

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fancy-textfill",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Fast implementation for resizing text to fill its container.",
55
"main": "index.js",
66
"repository": "https://github.com/fazouane-marouane/fancy-textfill",

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ function fontInfo(element: HTMLElement): FontInfo {
2222
let matchs = lineHeight.match(/^(\d+(?:.?\d+))(\w*)$/)!;
2323
lineHeightRatio = parseFloat(matchs[1]);
2424
switch(matchs[2]) {
25-
case 'pt':
26-
lineHeightRatio /= 10;
27-
break;
2825
case '%':
2926
lineHeightRatio /= 100;
3027
break;

0 commit comments

Comments
 (0)