Package org.djutils.math.functions
Class SuperScript
java.lang.Object
org.djutils.math.functions.SuperScript
Draw text in unicode superscript glyphs. Much of this is based on
Superscript letters in unicode
Copyright (c) 2024-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SuperScript
public SuperScript()Create the SuperScript converter.
-
-
Method Details
-
translate
public char translate(char in) Translate one character to superscript.- Parameters:
in- the character to translate- Returns:
- the character in superscript, some approximation thereof, or the input character if no translation was available
-
translate
Translate a String into superscript.- Parameters:
in- text to translate- Returns:
- superscripted text
-