embedded-fonts

Is it possible to adjust a font's vertical scaling using CSS?

家住魔仙堡 提交于 2019-11-27 00:59:49
问题 I am using an embedded font for the top navigational elements on a site Helvetica65 and at 16px it is the perfect WIDTH but I need it to be about 90% of it's current height. In Photoshop, the solution is simple - adjust the vertical scaling. Is there a way to do essentially the same thing using CSS? And if so, how well is it supported? Here is a jsFiddle of the basic nav coding. 回答1: transform property can be used to scale text: .menu li a { color: #ffffff; text-transform: uppercase; text

iText 5 HTML+CSS to PDF/A-2 : Helvetica font not embedded error

匆匆过客 提交于 2019-11-26 18:01:40
The following code is being used for converting HTML file with CSS to PDF/A-2 using iText5 (this code is from the example provided online): public static final String HTML = "D:\\PDFA2\\html\\sample.html"; public static final String CSS = "D:\\PDFA2\\html\\sample.css"; public static final String DEST = "D:\\PDFA2\\html\\sample.pdf"; public void createPdf(String file) throws IOException, DocumentException { Document document = new Document(); PdfAWriter writer = PdfAWriter.getInstance(document, new FileOutputStream(file),PdfAConformanceLevel.PDF_A_2A); writer.setInitialLeading(12.5f); document

@font-face works in IE8 but not IE9

旧城冷巷雨未停 提交于 2019-11-26 04:43:01
问题 As described above, I have issues with @font-face not displaying in IE9 although it displays fine in every other browser including IE8 and under. Additionally, when viewing locally on my computer, IE9 does display the font, just not when fully live. The site is: bigwavedesign.co.uk/gcc/gcc/ The code used is: @font-face { font-family: \'LeagueGothicRegular\'; src: url(\'league_gothic_0-webfont.eot\'); src: local(\'League Gothic Regular\'), url(\'league_gothic_0-webfont.woff\') format(\'woff\')

Mime type for WOFF fonts?

岁酱吖の 提交于 2019-11-26 01:55:33
问题 What mime type should WOFF fonts be served as? I am serving truetype (ttf) fonts as font/truetype and opentype (otf) as font/opentype , but I cannot find the correct format for WOFF fonts. I have tried font/woff , font/webopen , and font/webopentype , but Chrome still complains: \"Resource interpreted as font but transferred with MIME type application/octet-stream.\" Anybody know? 回答1: Update from Keith Shaw's comment on Jun 22, 2017: As of February 2017, RFC8081 is the proposed standard. It