I'm trying to figure out a decent solution (especially from the SEO side) for embedding fonts in web pages. So far I have seen the W3C solution, which doesn't even work on Firefox, and this pretty cool solution. The second solution is for t...
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...
I am using the Firefox Add-on SDK to create an extension and am performing a PageMod. This code is in main.js.  ... exports.main = function() {   var pageMod = require("sdk/page-mod");    pageMod.PageMod({     include: "*",     cont...
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'm hoping to be able to find the height of the baseline of a piece of text in a div using javascript.   I can't use a predefined font, because many of my users will be using a larger font setting in their browser.  How can I do this in javas...
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 want to use custom font such as 'Comic Sans MS' or 'Calibri' font in jsPDF. i have found similar question here,  but mine is not working. i already added the latest jspdf. and my code is like below :           var doc = new jsPDF(&#...
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 encounter this problem in the latest version of Chromium. After the creation of the first element using a font-family embedded via @font-face I am being handed wrong offsetXyz values. By the time the script is executed, the window.onload hook will...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.