We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70df4cd commit 46b58d4Copy full SHA for 46b58d4
src/BaselineRatio.ts
@@ -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. */
+/** 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
+ */
5
export const baselineRatio = (
6
fontFamily: string,
7
fontSizePx: number
0 commit comments