fonts

Do browsers need to re-download customized fonts every time they access a website?

夙愿已清 提交于 2020-01-12 05:31:46
问题 Suppose I have a website in which I have customized fonts, and all the .otf files are about 1MB. Now, when a user visits the website, the fonts will be downloaded. The question is, will these fonts remain in the user's browser as installed all the time? I.e. Even if the user turns off the browser, will the fonts remain in there? Or are .otf files just like all the .css .html files? Which can be cached but then need to be downloaded again? If the latter, how do we deal with this problem? I

Init loaded text with remote web font in Fabric.js

别等时光非礼了梦想. 提交于 2020-01-12 05:29:06
问题 I'm working on a big custom application with Fabric JS and I already did a great job. But I have a problem with init loaded text object that uses a webfont. As long as that font is local on the client's computer, I works fine, ELSE the webfont is NOT loaded and the text object on the canvas is rendered in a default sans-serif font-family. Here is, in short, what I do (in this example I use "allstar" as my webfont) : CSS: The css is loaded inside fonts.css in the head before fabric.js @font

What dependency between font-size and width of char in monospace font?

旧时模样 提交于 2020-01-12 04:33:27
问题 What dependency between font-size and width of char in monospace font? In my web-application I use "courier new" font. I want to know, what realy length in pixels of string? If I know css font-size property, how can it help me to know really length of string? Thanks 回答1: Each monospace font would have its own ratio between pixel length and font-size. But since we would ideally express font family's as several options to give the browser a wide range to fulfill the style (in case it doesn't

Ipad/iPhone fonts not rendering properly

瘦欲@ 提交于 2020-01-11 13:53:12
问题 I have an issue with fonts on my iPad (4) / iOs 7.0b4. I have this CSS: p span { font-family: 'Arial Black', sans-serif; font-size: 22px; } Renders fine in all browsers but not on iPhone or iPad. It displays a serif font and not Arial Black. Even if I write "Sans-Serif" it displays a serif font. Changing to ArialMT, Arial or Helvetiva doesn't work either. I use the Foundation 4 framework with an own stylesheet. Do I miss something? 回答1: iOS does not support Arial Black. Source: http:/

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

Does Mayavi “Font Size” text property work?

≡放荡痞女 提交于 2020-01-11 08:44:11
问题 Is there a bug in the Mayavi font rendering that prevents changing the font size? I am using the Mayavi2 GUI to change the font size of the axis labels on a volumetric plot. To get there I go to: Scene -> Scalar Field -> Colors and Legends -> Axes -> Label Text (tab) -> Font Size Changing this number does not affect the size of the fonts in the image. Is this a known bug? I have seen no reference to it on Google. How do you change the text size on your mayavi figures? 回答1: I've just

How to create png from unicode character?

不想你离开。 提交于 2020-01-11 07:19:28
问题 I have been looking far and wide on the internet for images/vectors of unicode characters in any font, and have not found any. I need image files of unicode characters for the project I am working on, where I cannot just use text. Is there a way to "convert" unicode characters from a font into an image file? Or does anyone know where I can find this? Thank you. 回答1: Try BMFont Bitmap Font Generator Supports Unicode, generates PNG images - looks like a perfect match. 来源: https://stackoverflow

Change default font of Select2

▼魔方 西西 提交于 2020-01-11 06:54:11
问题 I am using the Select2 plugin to add the search feature to my dropdowns. However, I want the font style of these drop downs to be set to the same font as my other fields: font-family: Arial, Helvetica, sans-serif; My 'Select' HTML: <label>Department</label> <select class='js-example-basic-single' name="department" id="department" required> <option value="Dep 1">Dep 1 </option> <option value="Dep 2">Dep 2 </option> etc..... </select> My JavaScript: $(document).ready(function() { $(".js-example

how to detect which language fonts are supported by device?

旧街凉风 提交于 2020-01-11 05:27:27
问题 say, I want to display a list of 10 languages in native scripts, and if the phone doesn't support the font it will fall back to english script. Is there any way we can detect which fonts are supported by particular device? In other words, I just want to check whether, say, "punjabi" can be displayed as "ਪੰਜਾਬੀ" 回答1: To be on the safe side, I would use both the English and the native name (and this is what I actually did). Please take pity on the poor guy seeing all these فارسی 贛語 ગુજરાતી

Google Chart's in IE7

前提是你 提交于 2020-01-11 02:36:12
问题 I am using the visualization library the charts works fine in Firefox/Chrome, however when I test in IE7 I am getting a different font showing up on the chart. Different computers yield different results. So it is known, I am running IE9 but using the IE7 "browser mode" to test. Also, I am using the new "corepackage" in Google Charts, so it utilizes both VML and SVG when needed so it does render in IE. But for whatever reason I get weird fonts in IE7. Can anyone explain what might be