Skip to content

What unit of measurement does NetBeans use for fonts in the editor and GUI? #8569

Answered by matthiasblaesing
PavelTurk asked this question in Q&A
Discussion options

You must be logged in to vote

It is pt:

public static Font getFont(AttributeSet attrs, Font defaultFont) {
Font font = defaultFont;
if (attrs != null) {
String fontName = (String) attrs.getAttribute(StyleConstants.FontFamily);
Boolean bold = (Boolean) attrs.getAttribute(StyleConstants.Bold);
Boolean italic = (Boolean) attrs.getAttribute(StyleConstants.Italic);
Integer fontSizeInteger = (Integer) attrs.getAttribute(StyleConstants.FontSize);
if (fontName != null || bold != null || italic != null || fontSizeInteger != null) {
if (fontName == null) {
fontName

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PavelTurk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants