fonts

Google fonts font-weight of 100 is not working

梦想的初衷 提交于 2019-12-30 10:58:52
问题 I have an android game that uses the Raleway font from google fonts, and in the game it looks nice. I want to use that font on the website as well, but the font doesn't display the same. In the game I use Raleway-Thin , and that is the same one I want to use on the website. The issue that I am having is that the thin font isn't as thin as in the game. @import url(http://fonts.googleapis.com/css?family=Raleway:500,600,700,100,800,900,400,200,300); body{ font-family: 'Raleway', sans-serif; } h1

third font in font family is significantly larger

久未见 提交于 2019-12-30 10:45:47
问题 For my website I have chosen to use some pretty obscure fonts in my font family. The most well known font (3rd in family) is Century Gothic, which most computers have. font-family:Tw Cen MT,Gill Sans,Century Gothic,sans-serif; The problem is that 12px font in century gothic is far bigger than a 12px font in Tw Cen MT & Gill Sans. IF a computer falls back on Century Gothic, the fonts will be a mess. I NEED A Jquery solution that says, century gothic will have a font-size of 75% of the normal

iOS ttf fonts only partially work

冷暖自知 提交于 2019-12-30 10:33:07
问题 I need OpenSans in my app and so I imported the whole OpenSans bunch which includes Bold, ExtraBold, Italic, Regular, Light and more. I added them to Fontbook (to check the exact name I need to address them by when using them) on my Mac, to my project in the file structure and added them in Build phases to my project as well. Now the weird thing; when I use them with UIFont, ONLY OpenSans-Bold works. The rest doesn't work. If I use OpenSans-Bold (exactly the identifier given by Fontbook),

Loading some TrueType Font from TTF file in Java causes FontFormatException: Font name not found

时间秒杀一切 提交于 2019-12-30 10:20:07
问题 I am attempting to create a java.awt.Font instance from a TTF file on my system, but only some fonts are able to load without error. The code below is some test code I found online. When run on my system, it is able to load 285 fonts successfully (ex. Arial.ttf), but fails on 83 fonts, (ex. AmericanTypewriter.ttf). All errors are of the form FontFormatException: Font name not found with no embedded cause. Are there known issues with java.awt.Font and format compatibility? I can't find

List of Fonts Provided by Application (iOS)

拈花ヽ惹草 提交于 2019-12-30 08:30:46
问题 does anyone know how to get a list of custom fonts from the 'Fonts provided by application' key in the info.plist file in Xcode? Thanks 回答1: The following code reads the list of custom font files from the Info.plist, and extracts the full font name from the font file. (Parts of the code is copied from https://stackoverflow.com/a/17519740/1187415 with small modifications and ARC adjustments). Objective-C NSDictionary* infoDict = [[NSBundle mainBundle] infoDictionary]; NSArray* fontFiles =

HTML 5 canvas font being ignored

岁酱吖の 提交于 2019-12-30 08:15:28
问题 I'm trying to write some text to a canvas element, but it seems that the font options I put in are being completely ignored. No matter what I change them to, it all comes out the same, which I believe to be the default 10px sans-serif. Heres what I have (this function runs on load) function start() { canvas = document.getElementById('c'); ctx = canvas.getContext('2d'); ctx.fillStyle = "white"; ctx.font = "12px monospace"; ctx.textBaseline = "top"; } It doesn't work in either Firefox or Chrome

JLabel html text ignores setFont

我的未来我决定 提交于 2019-12-30 08:13:52
问题 I've just started porting my Swing app from OS X to Windows and things are painful with JLabel s. I've noticed that the font specified to setFont is ignored if the label's text is HTML (this doesn't happen on the Mac). The HTML formatting is EXTREMELY useful for readability on complicated displays. Under normal circumstances I'd specify the font in an HTML tag, but the font I'm using is loaded at runtime using Font.createFont with a ttf out of the JAR. I tried using the loaded font's name in

Jasper reports doesn't work on server in docker container (spring boot java application) [duplicate]

只愿长相守 提交于 2019-12-30 07:30:09
问题 This question already has answers here : Font is not available to the JVM with Jasper Reports (18 answers) net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: can not reading font data (3 answers) What could be making Jasper Reports to throw java.io.IOException reading font data? (1 answer) Closed last year . My pom file: <!-- Jasper Dependency --> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.6.0</version> </dependency

Jasper reports doesn't work on server in docker container (spring boot java application) [duplicate]

人盡茶涼 提交于 2019-12-30 07:30:06
问题 This question already has answers here : Font is not available to the JVM with Jasper Reports (18 answers) net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: can not reading font data (3 answers) What could be making Jasper Reports to throw java.io.IOException reading font data? (1 answer) Closed last year . My pom file: <!-- Jasper Dependency --> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.6.0</version> </dependency

What is the relationship between a font Glyph Ascender and Descender in iOS?

蓝咒 提交于 2019-12-30 06:56:50
问题 I'm working with fonts in a UILabel (iOS7) and have come across something I'm hoping someone can explain: What is the relationship between a fonts' Glyph, Ascender, and Descender? From the documents I've read the Ascender is the portion of a font above the baseline, the Descender is the portion below (returned as negative). The combined absolute values should be the max Height of the font. For example an Ascender of 255 and a Descender of -64 would give a total height of 319. However the