java.lang.Object
de.edgesoft.edgeutils.javafx.FontUtils
public class FontUtils
extends java.lang.Object
Utilities for
Font.
Legal stuff
Copyright 2010-2020 Ekkart Kleinod ekleinod@edgesoft.de
This file is part of edgeutils.
edgeutils is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
edgeutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with edgeutils. If not, see http://www.gnu.org/licenses/.
- Since:
- 0.11.0
- Version:
- 0.13.0
- Author:
- Ekkart Kleinod
-
Constructor Summary
Constructors Constructor Description FontUtils() -
Method Summary
Modifier and Type Method Description static javafx.scene.text.FontgetDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontPosture thePosture)Returns derived font with given posture.static javafx.scene.text.FontgetDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontPosture thePosture, int theSize)Returns derived font with given posture and relative size.static javafx.scene.text.FontgetDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontWeight theWeight)Returns derived font with given weight.static javafx.scene.text.FontgetDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontWeight theWeight, int theSize)Returns derived font with given weight and relative size.static javafx.scene.text.FontgetDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontWeight theWeight, javafx.scene.text.FontPosture thePosture, int theSize)Returns derived font with given weight, posture and relative size.
-
Constructor Details
-
FontUtils
public FontUtils()
-
-
Method Details
-
getDerived
public static javafx.scene.text.Font getDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontWeight theWeight)Returns derived font with given weight.- Parameters:
theFont- fonttheWeight- font weight- Returns:
- derived font
-
getDerived
public static javafx.scene.text.Font getDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontWeight theWeight, int theSize)Returns derived font with given weight and relative size.- Parameters:
theFont- fonttheWeight- font weighttheSize- relative font size (+/- int)- Returns:
- derived font
-
getDerived
public static javafx.scene.text.Font getDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontPosture thePosture)Returns derived font with given posture.- Parameters:
theFont- fontthePosture- font posture- Returns:
- derived font
-
getDerived
public static javafx.scene.text.Font getDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontPosture thePosture, int theSize)Returns derived font with given posture and relative size.- Parameters:
theFont- fontthePosture- font posturetheSize- relative font size (+/- int)- Returns:
- derived font
-
getDerived
public static javafx.scene.text.Font getDerived(javafx.scene.text.Font theFont, javafx.scene.text.FontWeight theWeight, javafx.scene.text.FontPosture thePosture, int theSize)Returns derived font with given weight, posture and relative size.- Parameters:
theFont- fonttheWeight- font weightthePosture- font posturetheSize- relative font size (+/- int)- Returns:
- derived font
-