28package com.jogamp.opengl.test.junit.graph;
30import com.jogamp.graph.font.FontScale;
31import com.jogamp.junit.util.JunitTracer;
32import com.jogamp.math.FloatUtil;
34import org.junit.Assert;
36import org.junit.FixMethodOrder;
37import org.junit.runners.MethodSorters;
39@FixMethodOrder(MethodSorters.NAME_ASCENDING)
58 public static void main(
final String args[]) {
Simple static font scale methods for unit conversions.
static float[] ppmmToPPI(final float[] ppmm)
Converts [1/mm] to [1/inch] in place.
static float[] ppiToPPMM(final float[] ppi)
Converts [1/inch] to [1/mm] in place.
static float ptToInch(final float points)
Converts the the given points size to inch, dividing by 72 points per inch.
static float ptToMM(final float points)
Converts the the given points size to mm, dividing by 72 * 25.4 points per inch.
static float toPixels(final float points, final float res_dpi)
Converts typical font size in points and screen resolution in dpi (pixels-per-inch) to font size in p...
static float toPixels2(final float points, final float res_ppmm)
Converts typical font size in points and screen resolution in pixels (pixels-per-mm) to font size in ...
Basic Float math utility functions.
static final float EPSILON
Epsilon for floating point {@value}, as once computed via getMachineEpsilon() on an AMD-64 CPU.
static void main(final String args[])