Top "Fontmetrics" questions

Meaning of top, ascent, baseline, descent, bottom, and leading in Android's FontMetrics

This seems like a basic question, but I couldn't find a similar one on SO. While reading the documentation, I …

android fontmetrics
Java - FontMetrics without Graphics

How to get FontMetrics without use Graphics ? I want to get FontMetrics in constructor, now I do this way: BufferedImage …

java awt font-size fontmetrics
String length in pixels in Java

Is there a way to calculate the length of a string in pixels, given a certain java.awt.Font object, …

java string fonts awt fontmetrics
Java: Getting a font with a specific height in pixels

It’s easy to determine the rendered height of a font using FontMetrics, but what about the other way around? …

java fonts graphics2d fontmetrics
What is the correct syntax for changing fonts and drawing strings in Java?

Can someone check my syntax here? I am passing "Times New Roman","Arial","Verdana" to fontName and using 8,12,15 etc. for …

java graphics drawstring fontmetrics
Java: FontMetrics ascent incorrect?

When I look at the javadoc for FontMetric.getAscent() I see: The font ascent is the distance from the font's …

java fontmetrics
Programmatically measure text string in pixels for Silverlight

In WPF there is the FormattedText in the System.Windows.Media namespace MSDN FormattedText that I can use like so: …

text silverlight-4.0 fontmetrics
Java: Friendlier way to get an instance of FontMetrics

Is there a friendlier way to get an instance of FontMetrics than FontMetrics fm = Graphics.getFontMetrics(Font); I hate this …

java java-2d fontmetrics