From 72a5a63bb59647906c26a15b1a23068d484c2628 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 29 Nov 2017 20:21:15 +0000 Subject: [PATCH] simple attempt at detecting fonts --- detect_fonts.html | 15 +++++++++------ index.nginx-debian.html | 27 ++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/detect_fonts.html b/detect_fonts.html index 2167eea..024ffa2 100644 --- a/detect_fonts.html +++ b/detect_fonts.html @@ -18,8 +18,6 @@ diff --git a/index.nginx-debian.html b/index.nginx-debian.html index 03eec67..df4a717 100644 --- a/index.nginx-debian.html +++ b/index.nginx-debian.html @@ -35,9 +35,33 @@ if (gl) { document.write("vendor = " + vendor + "

"); document.write("renderer = " + renderer + "

"); + document.write("Your screen resolution = " + + window.screen.width + + " x " + + window.screen.height + + " pixels " + + " ( " + + window.screen.colorDepth + + " bit color ) " + + " ( " + + window.screen.orientation.type + + " mode ) " + + "

"); } else { document.write("
Failed gl=NULL
"); } +console.log("Your screen resolution = " + + window.screen.width + + " x " + + window.screen.height + + " pixels " + + " ( " + + window.screen.colorDepth + + " bit color ) " + + " ( " + + window.screen.orientation.type + + " mode ) " + + "

"); @@ -62,6 +86,7 @@ if (gl) { java test2
java test3
dump javascript webgl info
+detect / load fonts (?)
dump javascript info
javascript font detection
detecting fonts
@@ -111,7 +136,7 @@ if (gl) {