Skip to content

Commit 46b58d4

Browse files
committed
Add credits in baseline ratio
1 parent 70df4cd commit 46b58d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/BaselineRatio.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
/** Helper method to calculate the ratio between the top of the font to its baseline and its baseline to the bottom of the font. */
1+
/** Helper method to calculate the ratio between the top of the font to its baseline and its baseline to the bottom of the font.
2+
*
3+
* Implementation inspired by https://github.com/nathanhammond/baseline-ratio
4+
*/
25
export const baselineRatio = (
36
fontFamily: string,
47
fontSizePx: number

0 commit comments

Comments
 (0)