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...
How do I get the actual font face and font size of an element when the CSS font-face and font-size properties are not defined?  For example, the JavaScript snippet  object.style.fontFamily   does not return any value. That's pretty obvious, ass...
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 am Using a Regional language unicode font-face in my site but the numbers are not looking good.   So I want to apply new font-style or css to numbers only..  please help...
I am building a web application that draws a set of letters in different fonts on an HTML 5 Canvas using fillText. The user will click somewhere on that canvas and I need to check which letter they clicked on (or if they clicked on a letter at all)....
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...
Questions like this, this, this, this, and this  on SVG scaling did not help.  What's the best way to scale font sizes when scaling SVG documents?  Assume an original SVG document of 500x1000. To fit into our design viewport, we scale the documen...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.