Is there a way in javascript to obtain the names of all fonts (or font-families) that the browser can show?  (I want to give the user a dropdown with a list of all available fonts, and allow the user to choose a font.) I'd prefer not to have to...
Suppose I have the following CSS rule in my page:  body {   font-family: Calibri, Trebuchet MS, Helvetica, sans-serif; }   How can I detect which one of the defined fonts was used in the user's browser?  Edit for people wondering why I want to...
Is it possible to preload or otherwise cache @font-face fonts, most likely with javascript, before the page loads so you don't get that ugly jump when the page finally does load?...
I have a script for photoshop which outputs the name of a text layer and layer content into Excel CSV file. It works fine if the text is english but if the text is Arabic/Thai it was displayed like this "??????". How can I display these texts...
I find the following JS solution to having text resize based on viewport size quite elegant:  https://stackoverflow.com/a/10295733/1318135  onresize=onload=function(){document.body.style.fontSize=window.innerWidth+"px"}   However, there are 2...
I'm trying to make my own Tampermonkey script to change a specific font style on a specific site from a cursive style to a sans-serif style.    The HTML from the site is:  <div class="text">Ask more leading questions</div>   T...
When using the FontFace API (not @fontface) is there a convenient way to pass multiple different font formats, like with providing multiple sources in @fontface?  Or alternatively, is there a convenient way to check what formats the browser using the...
Is there a way to determine the type of a given font (TrueType, OpenType, Type 1, Bitmap) using javascript?...
I am trying to generate some SVG and allow users of my website to download these SVGs as PNGs. After reading this I get all my external images included in the downloaded PNG. Now I am trying to get the fonts on the PNG correct. This seems to answer t...
I am trying to customize a view-src bookmarklet for iPad. This one is looking pretty good so far.   But I want to make it just a little more readable: The Courier (New) font is a bit ugly even (especially?) on the retina display and I'd prefer an...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.