Google's Web Fonts API offers a way to define callback functions to be executed if a font has finished loading, or couldn't be loaded etc. Is there a way to achieve something similar using CSS3 web fonts (@font-face)?...
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...
I am trying to measure the width of a specific character from a webfont. The active event provided by Google's Webfont Loader fires slightly too early and the measurement it made on the default font.  A stripped down version of the script that I...
If a character is entered in a text field and the currently applied font does not support that character, a backup font is used for that character. Is it possible to tell via Javascript or some other means when this is happening? Trying to create a s...
First of all, there is a very similar question here: How to check if Font Awesome is loaded in web page with javascript?  I will try to explain why my question is different.  I have discovered that browsers have started to block web fonts in general,...
I need to trigger an action as soon as the fonts in my page switch to google's. (I'm using the css mode) Is there any DOM Event fired at the font switch?...
I'm able to embed and style a font-face in a webpage to view on Android and iPhone, and it works fine. However, it will not render on Windows Phone 7.5.   I've tried embedding the font into the CSS:  @font-face {     font-family:'MyFont&#...
i have to detect with JS (jQuery) wether a browser supports Woff and then add a class to the body.  Something like this:      if(woffIsSupported){      $('body').addClass('modern');      }   is this somehow possible? Thank you for you...
I'm using the Google webfont loader, but I can't get the fontactive callback to work.  The font is rendering on the page, but for some reason the callback isn't firing. (Instead it waits for 5 seconds and then the fontinactive callback fi...
I've noticed some examples that shows how to load a font from the current website being the base path for loading the font as:  Browser.document.fonts.load ("1em '" + font + "'").then (function (_) {     promise.complete (...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.