webfonts

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

Font Weight with Google Fonts Roboto, normal (400) and bold (700) work, light (300) does not

折月煮酒 提交于 2019-12-18 09:41:15
问题 Link: https://50.62.213.246/gktest/ The placeholder text and input text in the search bar will not respond to font-weight: 300; If I try font-weight: 700; the text is bold. normal = 400, light = 300, bold = 700, etc So my question is why does the text not appear light with font-weight: 300; ? 回答1: Your link uses the https protocol. http vs https - for a protocol agnostic reference, use //fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700|Roboto:400,300,700,500,100 Basically your

Is it possible to use custom fonts - using font-face?

扶醉桌前 提交于 2019-12-18 06:18:08
问题 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'; src: url(data:font/woff;charset=utf-8;base64,d09GR... } ...and also provided eot / ttf files, using a declaration that works across all other browsers - @font-face {font-family:'MyFont';src:url('../fonts/MyFont-webfont.eot');src:url('../fonts/MyFont-webfont.eot?

Google fonts: Define custom name in CSS

无人久伴 提交于 2019-12-18 05:06:09
问题 Is it possible to define a custom name for Google fonts? Eg. <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> How to use 'Open Sans' with custom name? div { font-family: 'custom'; // to be same as 'Open Sans' } Using @font-face as answered here is not possible, since I don't have url to source files (ttf, eot, woff, ...). Links to source files on Google cdn would solve this issue. 回答1: This code will work in your case: <style type="text/css">

How to import font file using JavaScript?

微笑、不失礼 提交于 2019-12-18 05:03:41
问题 CSS has a @font-face rule which allows us to "use" custom fonts. Does JavaScript have this functionality? More specifically, is it possible to "use" custom fonts without using the CSS @font-face rule? 回答1: There is no way to cause the browser to load a font from the network other than with a @font-face rule. You could theoretically create that @font-face rule from JavaScript without having to use document.write (or document.createElement("style") etc), if instead you used the CSS Object Model

How to import font file using JavaScript?

末鹿安然 提交于 2019-12-18 05:03:07
问题 CSS has a @font-face rule which allows us to "use" custom fonts. Does JavaScript have this functionality? More specifically, is it possible to "use" custom fonts without using the CSS @font-face rule? 回答1: There is no way to cause the browser to load a font from the network other than with a @font-face rule. You could theoretically create that @font-face rule from JavaScript without having to use document.write (or document.createElement("style") etc), if instead you used the CSS Object Model

Custom web font not working in IE9

青春壹個敷衍的年華 提交于 2019-12-18 03:49:55
问题 I downloaded a custom font ( Gotham-Light.eot ), but it doesn't work on Internet Explorer 9. @font-face { font-family: Gotham-Light; src: url('Gotham-Light.eot'); } This doesn't work. I'm using ASP MVC3 rebuilt, used custom tool, still nothing. 回答1: First, the goods: @font-face { font-family: 'ludger_duvernayregular'; src: url('http://jfcoder.com/css/fonts/ludgerduvernay-fontsquirrel/ludgerduvernay.eot'); src: url('http://jfcoder.com/css/fonts/ludgerduvernay-fontsquirrel/ludgerduvernay.eot?

Webfonts or Locally loaded fonts?

空扰寡人 提交于 2019-12-17 21:38:56
问题 Ever since the troubles brought on by using Cufon I ventured away from using external font resources, but as of late, I have been looking for alternate methods of loading fonts to see if there's a better way; better methods have a way of just appearing out of the blue. There are a lot of new methods out there, and variations for each method it seems; Should I use typekit ? or google webfonts (with js or css)? should I continue to use locally loading fonts (e.g. fontsquirrel.com generated

How to make Google Fonts work in IE?

落爺英雄遲暮 提交于 2019-12-17 05:38:16
问题 I've been developing a site that uses the Google Fonts API. It's great, and supposedly has been tested in IE, but when testing in IE 8 the fonts simply don't get styled. I included the font, as Google instructs, thus: <link href="http://fonts.googleapis.com/css?family=Josefin+Sans+Std+Light" rel="stylesheet" type="text/css" /> and added its name to the front of a font family in CSS thus: body { font-family: "Josefin Sans Std Light", "Times New Roman", Times, serif; font-size: 16px; overflow-y

Fonts and other styles are different in local and gihub pages live version of Jekyll

最后都变了- 提交于 2019-12-14 04:03:38
问题 I see changes in the look and feel of local and live version (hosted on Github). Below is the local version.. and here is the live version The font-style, etc. seems to be different in these versions? Below are my css codes. # _sass/_layout.scss #banner { /* @include retina-background-image($img-banner); */ /* background-color: #8e8387;*/ outline: none; // display: block; // width: $banner-width; // height: $banner-height; margin: 35px 0 auto 35px; position: relative; /* To ensure the bottom