font-face

window.onload triggered before font-face load

烂漫一生 提交于 2020-01-17 04:12:05
问题 The following webpage loads Font Awesome, displays the icon fa-check , and has a debugger breakpoint on window.onload : <!DOCTYPE html> <html> <head> <link rel='stylesheet' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'> <script> window.onload = function () { debugger; }; </script> </head> <body> <div class='fa fa-check fa-4x'></div> </body> </html> On Chrome (with the console open), the breakpoint is hit after the icon is rendered. This is the expected

@font-face issue

坚强是说给别人听的谎言 提交于 2020-01-15 15:17:48
问题 Hello community! I am currently working on our own firms web site and I can't seem to get the @font-face to work properly. This is what the css looks like: @font-face { font-family: 'BebasNeue'; src: url('type/BebasNeue-webfont.eot?') format('eot'), url('type/BebasNeue-webfont.woff') format('woff'), url('type/BebasNeue-webfont.ttf') format('truetype'), url('type/BebasNeue-webfont.svg#webfontj1CI1MAi') format('svg'); } #nav li { display: inline; margin-left: 20px; font-family: BebasNeue,

@font-face issue

妖精的绣舞 提交于 2020-01-15 15:17:34
问题 Hello community! I am currently working on our own firms web site and I can't seem to get the @font-face to work properly. This is what the css looks like: @font-face { font-family: 'BebasNeue'; src: url('type/BebasNeue-webfont.eot?') format('eot'), url('type/BebasNeue-webfont.woff') format('woff'), url('type/BebasNeue-webfont.ttf') format('truetype'), url('type/BebasNeue-webfont.svg#webfontj1CI1MAi') format('svg'); } #nav li { display: inline; margin-left: 20px; font-family: BebasNeue,

@font-face issue

ぐ巨炮叔叔 提交于 2020-01-15 15:14:10
问题 Hello community! I am currently working on our own firms web site and I can't seem to get the @font-face to work properly. This is what the css looks like: @font-face { font-family: 'BebasNeue'; src: url('type/BebasNeue-webfont.eot?') format('eot'), url('type/BebasNeue-webfont.woff') format('woff'), url('type/BebasNeue-webfont.ttf') format('truetype'), url('type/BebasNeue-webfont.svg#webfontj1CI1MAi') format('svg'); } #nav li { display: inline; margin-left: 20px; font-family: BebasNeue,

Font monospace Android 2.3

隐身守侯 提交于 2020-01-14 10:33:14
问题 I have a problem with a mobile website on Android Gingerbread and versions prior to this. Fonts monospace do not exactly behave as monospaces should: different characters have different widths. This is how it looks on a Gingerbread default web browser (I also tested on Dolphin and Opera mini): This is how it looks on a ICS default web browser: I used the Cultive Mono downloaded from the web. <link href='http://fonts.googleapis.com/css?family=Cutive+Mono' rel='stylesheet' type='text/css'> CSS:

How to prevent IE7 from downloading all EOT files used for font-face declaration?

自作多情 提交于 2020-01-14 05:38:05
问题 I need some assistance here. We are using custom fonts (non-standard fonts) for our site and use the following font-face declaration (declared in our global css): @font-face { font-family: 'MyWebFont'; src: url('webfont.eot'); /* IE9 Compat Modes */ src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('webfont.woff') format('woff'), /* Modern Browsers */ url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */ url('webfont.svg#svgFontName') format('svg'); /*

@font-face not working for my ttf font in all browsers

早过忘川 提交于 2020-01-13 07:17:09
问题 I used ttf font for my website using @font-face in css like this @font-face { font-family: myFirstFont; src: url('tamil.ttf'); } .tlan { font-family: myFirstFont; color:#039; } tamil.ttf is not english language font. I can't able to solve this problem .. follow this link, for all my stuffs regarding this @font-face problem. http://aaritcare.com/font%20problem/ i am attached word document with my font . 回答1: try this : @font-face required eot, woff, svg, font format. @font-face { font-family:

two @font-face not acting like each other

你说的曾经没有我的故事 提交于 2020-01-11 13:40:20
问题 I'm using two @font-face in CSSreset.css exactly like each other, and just one of them works! This is the style code: @font-face { font-family: 'B Mitra'; src: url('./fonts/B Mitra.eot'); src: url('./fonts/B Mitra.eot?#iefix') format('embedded-opentype'), url('./fonts/B Mitra.woff') format('woff'), url('./fonts/B Mitra.ttf') format('truetype'), url('./fonts/B Mitra.svg#webfont') format('svg'); } @font-face { font-family: 'BBCNassim'; src: url('./fonts/BBCNassim.eot'); src: url('./fonts

When should CSS font-family value use quotes? [duplicate]

梦想的初衷 提交于 2020-01-10 19:32:13
问题 This question already has answers here : Do I need to wrap quotes around font family names in CSS? (3 answers) Closed 6 years ago . When should the value for CSS 'font-family' have quotes around it? I've seen both font-family: arial and font-family: "arial" . As a specific example, I declare a font this way: @font-face { font-family: 'entypo'; font-style: normal; font-weight: 400; src: url('/css/fonts/entypo.woff') format('woff'); } What would be the correct CSS to have an element use this

Change default font type/size in TinyMCE

一世执手 提交于 2020-01-10 17:33:47
问题 How do you change the default font type and font size in TinyMCE? I'm using the advanced skin and I've changed the body, td, pre style in default/content.css but it still doesn't change. 回答1: Well, there are several content.css and only one is used to style your editor depending on your configuration settings . You should use the content_css configuration option and name an own css file where you can overwrite the editors defaults (the content.css you were recently looking for). In your init