diff options
Diffstat (limited to 'docs/res/base.js')
-rw-r--r-- | docs/res/base.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/res/base.js b/docs/res/base.js index 0d4b12add..c808b8731 100644 --- a/docs/res/base.js +++ b/docs/res/base.js @@ -86,6 +86,13 @@ function InterUIDynamicTracking(fontSize) { return a + b * Math.pow(Math.E, c * fontSize) } +// InterUIDynamicLineHeight produces the line height for the given font size +// +function InterUIDynamicLineHeight(fontSize) { + var l = 1.4 + return Math.round(fontSize * l) +} + // Mac or not? Maybe even a buggy Safari? var isMac = false |