fonts

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

我只是一个虾纸丫 提交于 2019-12-30 06:56:13
问题 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

How to set line spacing/height in a JLabel in Java Swing?

扶醉桌前 提交于 2019-12-30 06:44:09
问题 I have the following JLabel code: JLabel someJLabel = new JLabel("<html>first line<br>second line</html>"); someJLabel.setFont(new Font("Arial", Font.PLAIN, 16)); What I'd like to do is be able to control the line height/spacing between the two lines. PS: I've also looked at using paragraphs instead of breaklines, but it's the same thing. And I don't know if you can do that within an html tag without using css (you can't use css within html code in a JLabel in Java Swing). 回答1: This should

FontAwesome Pro and xamarin.ios only one font can be active

主宰稳场 提交于 2019-12-30 06:27:48
问题 So I have been looking for an answer to this. I can't get all 3 fonts in FontAwesome Pro to work with my xamarin native (iOS) to work. I do use UIFont.FromName(fontName, size); But the "fontName" needs to be the "family"-name of the Font, which is a problem with FontAwesome because all versions in the pro edition got the same PostScript name. Its not the filename, its the family property of the font. So when I uses (on Mac) Fontbook, I can see that all three versions (Regular, Light and Solid

How to Create Subset Fonts in .NET?

岁酱吖の 提交于 2019-12-30 06:26:48
问题 I have a Silverlight application that I need to embed some less-than-common fonts in. It's simple enough for me to just copy over the TTF/OTF and compile that with my app. However, in many cases, only like 5-10 of the characters are actually used. In other cases, some font files are incredibly large ( Arial Unicode MS Regular is 22.1 MB, as an example). Fast download times of my app is really important, so optimizing the fonts used is paramount. So, what I was thinking is that I've seen in

JasperReports 5.6: Could not load the following font

一笑奈何 提交于 2019-12-30 06:21:30
问题 I am facing the problem, that JasperReports still cannot find the Arial font. I created a simple Maven Project with following structure and included it to my main application. So the main application contains the installed JAR in classpath: - jasperreports_extension.properties - fonts |-> arial |-> ariali.ttf |-> arialbi.ttf |-> arialbd.ttf |-> arial.ttf |-> fonts.xml But I still see following Exception while exporting report to PDF. net.sf.jasperreports.engine.JRRuntimeException: Could not

How do I specify fallback fonts in Java2D/Graphics2D

最后都变了- 提交于 2019-12-30 06:12:12
问题 I'm using g.drawString(str, x, y) to draw a String with a Graphics2D object g . The current font of g does not cover all the characters of str (I have e.g. Chinese chars in there). On Mac OS X, a fallback font seems to be automatically used, but not on Windows, where black square outlines appear instead of the wanted characters. Why is the behavior different depending on the platform? How do I specify a fallback font (or several fallback fonts) in case of missing characters? (For instance,

Left space on first letter CSS

流过昼夜 提交于 2019-12-30 06:06:57
问题 I am using the Google font 'Lato' and I am having problems with having title and text align properly to the left... The font (when large) appears to have a kern space on the first letter and wont align left without space!? So here also a fiddle: <h1>Hello</h1> <p>Hello, this is sentance</p> FIDDLE Also, adding a negative value on the margin-left (magin-left:-10px) just seems like a terrible workaround... and this would not work overall for different font-sizes, unless individually adjusted as

How to add a new font in tinymce editor?

安稳与你 提交于 2019-12-30 05:46:09
问题 I want to add new font in tinymce editor which are display in font dropdown and apply to editor text. I try to add ttf font in fonts folder of advance themes skin folder and also add in editor_template.js and add css in contect.css for @font-face. I got font name in fonts dropdown. But when i apply to any text no any font effect on that text. What is actual problem i can't found. Hope this is path issue or other... 回答1: I solved the issue, Check all the possible issues below and fix them to

Increase the font size of emoji characters in a UITextView in iOS 5.x

霸气de小男生 提交于 2019-12-30 04:43:08
问题 If I have UITextView and set the font size to, say 32. When I run the application (in both simulator and on the device), I see a large cursor and text that I type appears just as I'd assume it would. But if I switch the the Emoji keyboard, they display small. Like the size of the font was never increased. I know these emoji font scales, as I've blown them up to giant proportions in OSX Lion, and if I create a UIButton with an emoji character as it's label and set the font to "Apple Color

Listing available fonts in PHP

戏子无情 提交于 2019-12-30 04:21:05
问题 I'd like to query what fonts are available on a *nix-like system, ideally using PHP 5.2 or 5.3, but there doesn't seem to be many libraries available to do it in a system-independent way. php-font-lib just scans a directory (code, demo) but I'd hope there is a more elegant way to do it. (In any case, scanning a folder is only part of the task; font files still need to be opened to retrieve name and other metadata). Background: I am rendering PDFs on a webserver using Inkscape, and would like