font

How can I prevent web fonts from being downloaded and used illegally?

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a project where I am using an embedded font using @font-face in CSS. Everything is working fine but the site owner wants to encrypt the font so that no one can use it other than when viewed on the site. How can that be setup? I have the font on the server, it's embedded using @font-face in CSS, but somehow I have to restrict the access to it. Using a font hosting company is not an option, it has to be something that can be run locally on the server. 回答1: If using a font hosting company is not an option, then you have to do all the

How to deliver fonts from a non-standard directory using Asset Pipeline

匿名 (未验证) 提交于 2019-12-03 02:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to include Fontawesome with a Rails 4 app however the assets aren't making it into the asset pipeline. However, the fonts aren't making it out in production and I can't figure out why. File structure organisation All my assets are stored in /assets/components so that Fontawesome appears in: /assets/components/font-awesome (they're in a different directory because I'm using Bower). CSS manifest file: # application.css.scss /* ... *= require bootstrap/dist/css/bootstrap *= require font-awesome/css/font-awesome *= require_self *=

Beamer presentation RStudio change font size for chunk

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using Knit PDF to compile a beamer presentation in RStudio. --- title: "A.P. Statistics" author: "Notes for Chapter 3.Rmd" date: "Monday, October 13, 2014" output: beamer_presentation --- ## Computer Output ```{r} summary(lm(cars$dist~cars$speed)) ``` How can I change the font size (just for this one chunk, leaving other chunks the same font size) so that the output of this command fits on one slide? 回答1: One solution is using knitr hooks . A hook is code that will run before or after the chunk code is executed. You could use it to

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

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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 have the font required), this method may

caching font-face fonts

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using @font-face to embed a font hosted on TypeFront, but my font is not cached by the browser (Firefox 3.6.13 and Epiphany 2.30.2). This is causing a FOUC (Flash of Unstyled Content) on Firefox and MFOMT (Momentary Flash of Missing Text, I just made that one up) on Epiphany every single time the page loads (I'm Ok with a FOUC/MFOMT the first time the the page loads, but not everytime). I'm trying to avoid having to embed the font in CSS in Base64 if possible and I can't host the font myself. Why is the font not cached? Are there any

How to change text/font color in reportlab.pdfgen

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to use a different color of text in my auto-generated PDF. According to the reportlab docs all I need to do is: self.canvas.setFillColorRGB(255,0,0) self.canvas.drawCentredString(...) But that doesn't do anything. The text is black no matter what. 回答1: If you copy and paste the code in User Guide Section 2. You'll get a fancy coloured rectangle with a coloured Text within it. Probably the approach is not that clear in the user guide, I'd spent some time playing with it and I finally know how it works. You need to imagine yourself

Office 2010 AddIn development - Can I from code-behind read what theme the user is using?

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: PowerPoint 2010 comes with three default themes, silver, black and blue. Is it possible to check which theme the user is currently using from code-behind? 回答1: I use this code to setup colours for my interface depending on what theme is set. public static class LFTheme { const int ThemeClassic = 0; const int ThemeBlue = 1; const int ThemeSilver = 2; const int ThemeBlack = 3; public static int Theme { get; set; } public static Color BackColor { get; set; } public static Color ForeColor { get; set; } public static Color ForeColorLight { get;

Font 'Arial' is not available to the JVM

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a Java project that uses Jasperreports. I worked several times in other projects using the same technology, and i had the same problem when trying to print a report in Unix environments. My project uses: JBoss 4.2.3.GA Java 1.6 Jasperreports 4.7.0 The exception thrown is: net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Arial' is not available to the JVM. See the Javadoc for more details. I found a common solution to solve this issue and ir really works: sudo apt-get install msttcorefonts However, I want to

CE 6.0 / .NET CF 3.5 Application has encountered a serious error (MC3100)

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When exiting my .NET CF 3.5 application on the Motorola MC3100 (CE 6.0 version only) I get the error message "Application xxx has encountered a serious error and needs to shut down". I then need to warm boot the device for the application to work again. This code works fine until the application is shutdown and it only fails if a font is set on a control in the application. Everything also works fine on .NET CF 2.0 and all of the other Motorola, Intermec, Psion, HHC devices I have tried with .NET CF 3.5. Here is my current test code:

Icon fonts not loading in IE11

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We're using icomoon for our icon fonts, and they work fine in Chrome and Firefox, but won't display in IE11... Sometimes. It seems to work on the first page load, but not on subsequent page loads. Clearing the cache doesn't seem to reset it. This issue may be present in other IE versions, right now we're just focusing on IE11. Here's our @font-face: @font-face { font-family: 'icon'; src:url('fonts/icon.eot?-3q3vo5'); src:url('fonts/icon.eot?#iefix-3q3vo5') format('embedded-opentype'), url('fonts/icon.woff?-3q3vo5') format('woff'), url('fonts