google-webfonts

“Font_Glyph_Outline” Error when using WebFonts with DOMPDF

做~自己de王妃 提交于 2019-12-24 22:32:15
问题 I'm trying to implement DOMPDF, everything is working (thanks to multiple Stack users) but I'm now having trouble rendering WebFonts when. According to the examples on the Google Code project for DOMPDF it is possible to use webfonts: http://pxd.me/dompdf/www/examples.php#css_at_font_face.html,html I've ref'd the font in the page as I would a HTML page: <link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'> and I've ref'd the font in

Is type=“text/css” mandatory on the <link> element?

半腔热情 提交于 2019-12-23 12:48:11
问题 I'm trying to use Google Web Fonts, and on the official site it recommends using a <link> tag including the type attribute, as following: <link href='http://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css'>` In the official HTML5 boilerplate site they ommit the type attribute <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700"> According to this rather old answer, in HTML5 the type attribute is optional on the <style> tag and

How to make this Google Font work on Internet Explorer 11

我的梦境 提交于 2019-12-23 07:57:25
问题 I use Montserrat font on my website, but it doesn't display on IE11 (windows 7). I put this other question some days ago: Montserrat font isn't displayed on IE 10 and 11 Now i am trying to add Montserrat google font throught the css but it doesn't seems to work. This is my code: @font-face { font-family: 'Montserrat'; src: url('assets/fonts/montserrat-regular-webfont.eot'); src: url('assets/fonts/montserrat-regular-webfont.eot?#iefix') format('embedded-opentype'), url('assets/fonts/montserrat

phantomjs + web fonts + font loader

℡╲_俬逩灬. 提交于 2019-12-23 07:04:06
问题 I'm running phantomjs within a node.js environment, and it's going well. At the moment I'm just using local fonts, but want to get google web fonts working with phantomjs. There are various conflicting and confusing reports out there about whether and how web fonts can be made to work with phantomjs . There are articles like this that contain outdated information with dead links. And posts like this that suggest that phantomjs 2.0 will or can support web fonts, others saying that it doesn't

Google Web-fonts vs Actual font files - For all devices

こ雲淡風輕ζ 提交于 2019-12-22 05:35:09
问题 I'm looking to use Joesfin Sans. It's listed on Google web fonts. I also have the .eot, .svg, .ttf and the .woff. This means full compatibility with the files (as far as I know). My main question is: which is better? Does Google Fonts load faster? Is it more compatible? Or should I stick with the files? 回答1: If you want the quick and easy solution, embed the font loader code and move on. Google is frequently adding more options/features to their service. Personally, I prefer to download the

Use a google font and include only [A-Z] and '&'

佐手、 提交于 2019-12-21 07:22:42
问题 Is there a way to use a google font and have it load only [A-Z] and the & ampersand character? I would like to do this to reduce size and improve load time, since I will only use basic latin numbers and letters. I can host the font myself if I must and it is legal to manipulate the font package, but am not sure if self-hosting is necessary and how to manipulate google's font package. I have specified A-Z like this: http://fonts.googleapis.com/css?family=Inconsolata&text

Is it possible to reduce Google Web Fonts to one request if I'm using multiple fonts?

佐手、 提交于 2019-12-19 19:16:22
问题 I ran a speed test on my website and one of the suggestions was to reduce my external requests. I am using 3 Google Web Fonts, in effect 3 separate requests. Is it posible to combine these into 1 request? 回答1: You can combine several fonts with just one call using the | character. Example: <link href='//fonts.googleapis.com/css?family=Cantarell|Terminal+Dosis' rel='stylesheet' type='text/css'> 回答2: Aren't Fonts (like image assets, JSON objects, or videos) separate resources that need

Is it possible to reduce Google Web Fonts to one request if I'm using multiple fonts?

此生再无相见时 提交于 2019-12-19 19:14:24
问题 I ran a speed test on my website and one of the suggestions was to reduce my external requests. I am using 3 Google Web Fonts, in effect 3 separate requests. Is it posible to combine these into 1 request? 回答1: You can combine several fonts with just one call using the | character. Example: <link href='//fonts.googleapis.com/css?family=Cantarell|Terminal+Dosis' rel='stylesheet' type='text/css'> 回答2: Aren't Fonts (like image assets, JSON objects, or videos) separate resources that need

Getting different figure types with Google Web Fonts

佐手、 提交于 2019-12-18 12:34:30
问题 According to this page: [Raleway] is a display face and the download features both old style and lining numerals, standard and discretionary ligatures, a pretty complete set of diacritics, as well as a stylistic alternate inspired by more geometric sans-serif typefaces than its neo-grotesque inspired default character set. (Emphasis mine) The default for numerals is "old style" ("onum" OpenType feature string), which look pretty awful when used in headlines. Ideally, I'd like to be able to

Is there a way to use Google Web Fonts in an HTML email?

孤者浪人 提交于 2019-12-18 02:09:11
问题 An HTML email must (should) have its CSS inlined in order to have the expected design in most of the email clients. Is there a way to link a Google Web Font to or embed in such an email but still maintain a broad acceptance (appropriate rendering) among email clients? I know that an alternative would be to have an image with the corresponding typography, but I would first search for something else that might work. 回答1: If the font is absolutely necessary, you will have to go with the text as