From 1f4e1edc6ed6f8f3d070f7b5baa97dd87a58ff99 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 5 Mar 2017 20:58:21 +0100 Subject: [PATCH] font --- text.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/text.html b/text.html index fc3cbfb..13871de 100644 --- a/text.html +++ b/text.html @@ -17,10 +17,10 @@ body { #text { color: #fff; text-align: center; - font-family: 'Menlow Regular'; + font-family: Menlo; font-variant: small-caps; //text-transform: uppercase; - font-weight: bold; + //font-weight: bold; text-shadow: 2px 4px 3px black; } #text2 { @@ -57,7 +57,8 @@ function onLoad() { } function handleFontSize() { // Set base font-size to 10% of window height - //document.body.style.fontSize = (window.innerHeight * 0.1) + "px"; + document.body.style.fontSize = (window.innerHeight * 0.05) + "px"; + /* var fontSize = window.innerHeight * 0.1; text.style.position = 'absolute'; @@ -70,6 +71,7 @@ function handleFontSize() { } while (text.getBoundingClientRect().width < (window.innerWidth - padding)); text.style.position = ''; text.style.paddingLeft = '0'; + */ } window.addEventListener("load", onLoad, false); window.addEventListener("resize", handleFontSize, false);