font

Fonts and Font Awesome icons not loading over SSL

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to get my website to load correctly over SSL, and every time I view the page, the icons and font aren't loading. Here's what I'm using for my CSS and font awesome. <link href = "css/bootstrap.min.css" rel = "stylesheet" > <link href = "css/style.min.css" rel = "stylesheet" > <link href = "http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel = "stylesheet" > <link href = 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600' rel = 'stylesheet' type = 'text/css' > Here's a link to

Can I use “Arial Rounded MT Bold” with css?

匿名 (未验证) 提交于 2019-12-03 01:32:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can I use "Arial Rounded MT Bold" with css ? font-family:"Arial Rounded MT Bold", Arial, Helvetica, sans-serif; Nothing Changed when I put : font-family:Arial, Helvetica, sans-serif; 回答1: Google Fonts has Nunito, by Vernon Adams: http://www.google.com/webfonts/family?family=Nunito It's nice and rounded; sort of reminds me of what they're using on Glitch. 回答2: It's hard to know without more information from the OP but I've seen these same symptoms caused by the hardware acceleration feature in Firefox. It's been know to cause several problems

Font-Awesome ExtJS ActionColumn

匿名 (未验证) 提交于 2019-12-03 01:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm Using FontAwesome with ExtJS in my app. All other buttons are working fine with font awesome when I do this: iconCls: 'fa fa-edit' For example. But when using the same configuration in the actioncolumn (Component that allow you to pu buttons on a Grid) the icon simply doesn't appear. Does anyone have an idea why? EDIT After trying @qdev answer: I'm just seeing a ?#f040; text rendered (in blue). The generated HTML for the action column button: CSS (Taken from firebuh inspector): element.style { font-family: FontAwesome; } *, *:before, *

adjust UIButton font size to width

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have the following code: UIButton * button = [ UIButton buttonWithType : UIButtonTypeCustom ]; button . frame = CGRectMake ( 0.0 , 0.0 , 25 , 25 ); [[ button layer ] setCornerRadius : 5.0f ]; [[ button layer ] setMasksToBounds : YES ]; [[ button layer ] setBackgroundColor :[[ UIColor redColor ] CGColor ]]; [ button . titleLabel setFrame : CGRectMake ( 0 , 0 , 25 , 25 )]; [ button setTitle :[ NSString stringWithFormat :@ "%@" , [[ topics objectAtIndex : indexPath . row ] unread ]] forState : UIControlStateNormal ]; The issue is

What is the MIME type for TTF files?

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can't find correct MIME type for TrueType fonts. I need it because I'm using File Uploading Class (CodeIgniter) to upload files, and I want to allow only TTF to be uploaded. Tried this: 'ttf' => 'font/ttf' 'ttf' => 'font/truetype' With no success. Any ideas ? 回答1: TTF does not have a MIME type assigned. You'll have to use the more general application/octet-stream , which is used to indicate binary data with no assigned MIME type. 回答2: I've seen font/ttf and application/x-font-ttf used as MIME types for TTF. But if your files are being

Different font sizes for different screen sizes

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my application I must use a smaller font for the medium density devices. Is it possible to specify that? 回答1: You should use styles , then you can have separate folders "values" (default) "values-hdpi" (high density) "values-mdpi" (medium density) and so on and put your style file with correct textSize values in each folder as needed. Then, when you are in medium density device it will pick the file in "values-mdpi" folder if exists or in "values" if not, and the same for high density etc... This same principle applies to al "res"

google fonts + webpack

匿名 (未验证) 提交于 2019-12-03 01:27:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to webpack 2.2 ; I would like to know the best way to integrate a Google font within my project. I am using the Webpack HTML plugin to generate an index.html from a template. So for the moment I hard-coded the Google font CSS directly in a tag but I do not really like this 'solution' since it does not really use webpack at all: 回答1: There is no need to use SASS. You will either need to use css-loader (if you are using CSS) or sass-loader (if you are using SASS). Note, if you are using SASS you will need both loaders. Both loaders

Change font size in text box - apache poi word docx

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I found the answer that explains how to insert a new text box into docx document. create text box in document .docx using apache poi The problem is that I cannot change the font size inside a newly created text box. Does anyone know how to do that? 回答1: Reference : create text box in document .docx using apache poi The ctTxbxContent.addNewP() in my code creates a CTP object. The XWPFParagraph has a constructor XWPFParagraph(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP prgrph, IBody part) . So you can get a XWPFParagraph from

Get Less variable value from string

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to create a function to switch themes. When I transpile my Less to CSS, the CSS file shows the literal string interpolation rather than the variable value. The variables file looks something like: @beach-font-color: #3d3d3d; @ocean-font-color: #d3d3d3; @theme: "beach"; @symbol: "@"; @currentTheme-font-color: ~"@{symbol}@{theme}-font-color"; In the stylesheet: body { color: @currentTheme-font-color; } The generated css produces: body { color: @beach-font-color; } instead of: body { color: #3d3d3d; } One thing I thought might be

PDFBox and chinese characters

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using pdfbox 1.8 and I am trying to fill a pdf form with chinese character but all I got is strange characters. I got a ttc file (uming.ttc) and using font forge I exported ttf file (right now I am tryng to use only one of the exported fonts). Loading of the fonts is done using InputStream is = .. PDTrueTypeFont font = PDTrueTypeFont.loadTTF(doc, is); and I am writing the pdf field using the following code (that I found here in stackoverflow but currently I can't found it) protected void setPDFFieldAndFont(String fieldName, String