font

Vim powerline (Lokaltog's) weird characters in MacVim

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use Powerline plugin ( https://github.com/Lokaltog/vim-powerline ) for the first time. Plugin seems to be installed. I use vundle with the following command: Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim'} I've tried many different settings, but currently in my vimrc it looks like this: set guifont=Menlo\ Regular\ for\ Powerline:h15 "set guifont=Monaco\ Regular:h15 " set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim let g:Powerline_symbols = 'fancy' "let g:Powerline_symbols = 'compatible' "let g:Powerline

Converting base64 font back to ttf or otf

匿名 (未验证) 提交于 2019-12-03 02:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've followed the instructions below but I've not been able to successfully convert to .woff Can I convert embedded base64 encode font to a font file? my font file starts with @font-face { font-family: "ff_0f65bfd4c8d788fc278265526a59"; src: url(data:font/woff;base64,d09GRk9UVE8AAGQDAAs............ and ends with ...........PPvfkLBXJFlQ==); } I can only assume the issue is the portion of the code I'm trying to convert. Any help would be much appreciated. When I attempt the command below, it just creates an empty file. openssl base64 -d -in

Font Family Open Sans not being used

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using Google's Open Sans Font in my application. I have defined the stylesheet as instructed: <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'> I then used it on the body selector as: body { font-family: 'Open Sans', sans-serif; } I have not defined font family anywhere else. I assume that since I have defined it at the parent, the child elements will automatically inherit it. However, if I open up the inspector for say an anchor tag in my application and see the computed styles

Downsizing an .OTF font by removing glyphs

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can't quite believe this question hasn't been asked specifically for OpenType fonts, but does anyone know of a way to remove glyphs from these fonts? I have an .OTF with a very large file-size (almost 10MB) and I need to make it smaller. The reasons are two fold. 1) I'm trying to prepare it for web embedding, so the smaller the files, the easier for the client. 2) Font Squirrel (used for easy preparation of font files) has a 2MB upload limit - I know there are alternatives, but none so far have been successful. To save wasting peoples time

How to use @font-face on a Chrome Extension in a Content Script

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Since I can't use chrome.extension.getURL() on a CSS file, how can I use @font-face with a local font file? 回答1: Here is how to get local path in css: body { background-image:url('chrome-extension://__MSG_@@extension_id__/background.png'); } More about it here . 回答2: This solution finally worked for me: It injects a style node into the document of the content script. And for Font Awesome, you only need the .woff src for Chrome. Adding @font-face stylesheet rules to chrome extension My code: var fa = document.createElement('style'); fa.type =

Font from origin has been blocked from loading by Cross-Origin Resource Sharing policy

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm receiving the following error on a couple of Chrome browsers but not all. Not sure entirely what the issue is at this point. Font from origin ' https://ABCDEFG.cloudfront.net ' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' https://sub.domain.com ' is therefore not allowed access. I have the following CORS Configuration on S3 * * GET The request Remote Address : 1.2 . 3.4 : 443 Request URL : https : //abcdefg

Ems to Pixel Conversion - Why 62.5% and not 6.25%?

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know that a lot of us are familiar with setting the font size on the body element in our CSS to 62.5%. This means that 1em will equal 10px and helps for keeping things pixel perfect but also allows for scaling of fonts. So wouldn't that mean that setting it to 6.25% would equate to 1em = 1px? Seems like an even simpler conversion rather than having to mess with decimals... Thanks guys! I'm quite aware of the em and it's history (design degree), but I'm sure others may find it helpful :) As far as the 1em = 1px, I don't see how this is

Embed custom font in a PDF generated from iPad Application

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Overview I am generating a four page PDF document in an iPad application that uses a custom font, Trade Gothic. It is embedding correctly into the application, and looks great. However, part of the app is to email the PDF as a leave behind. This sent file displays all font as a default sans type and on a few systems, I received the error Cannot find or create the font 'RVYPRT+TradeGothicLTStd-Light'. Some characters may not display or print correctly. I am generating the PDF using the UIKit Framework. Here is a tutorial that uses the same

ContentEditable - Get current font color/size

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on Rich Text Editor for web browser and I want to work with values of current font color and size in the RTE/ContentEditable element. Is there some preselected function to get these values, like execCommand, which is connected directly with ContentEditable element? Or should I use some text range jQuery library which will get these properties? 回答1: You can use document.queryCommandValue() to get the colour and font size of the current selection in all major browsers: Live demo: http://jsfiddle.net/timdown/AJBsY/ Code: var colour

“vertical-align: middle” does not align to the middle in Firefox

匿名 (未验证) 提交于 2019-12-03 02:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to align some text of different sizes vertically, however, Firefox displays the smaller text way above the middle. CSS: div.categoryLinks { margin: 1em 16px; padding: 0 4px; border-width: 1px 0; border-style: solid; border-color: #ece754; background: #f7f5b7; color: #a49f1c; text-align: center; font-size: 1.4em; } div.categoryLinks em { font-size: 0.6em; font-style: normal; vertical-align: middle; } HTML: <div class="categoryLinks"> <em>SECTION:</em> Page One · Page Two · <a href="link">Page Three</a> </div> Screenshot: screenshot