You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "PavelTurk (via GitHub)" <gi...@apache.org> on 2025/06/07 17:14:43 UTC
[D] What unit of measurement does NetBeans use for fonts in the editor and GUI? [netbeans]
GitHub user PavelTurk created a discussion: What unit of measurement does NetBeans use for fonts in the editor and GUI?
In Tools → Options → Font & Colors → Font, we can set the font size. I thought the size was specified in points (pt), but today I ran a few tests, and it seems the size is actually set in pixels (px). Am I correct? Also, should the unit of measurement be explicitly specified there?
GitHub link: https://github.com/apache/netbeans/discussions/8569
----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [D] What unit of measurement does NetBeans use for fonts in the editor and GUI? [netbeans]
Posted by "PavelTurk (via GitHub)" <gi...@apache.org>.
GitHub user PavelTurk added a comment to the discussion: What unit of measurement does NetBeans use for fonts in the editor and GUI?
For example, in [IDEA](https://www.jetbrains.com/help/idea/settings-editor-font.html#typography-settings) `pt` is used.
GitHub link: https://github.com/apache/netbeans/discussions/8569#discussioncomment-13398507
----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [D] What unit of measurement does NetBeans use for fonts in the editor and GUI? [netbeans]
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
GitHub user matthiasblaesing added a comment to the discussion: What unit of measurement does NetBeans use for fonts in the editor and GUI?
It is pt:
https://github.com/apache/netbeans/blob/e016f70e053b27c03fa1fa1b5869f2d24804dd09/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/view/ViewUtils.java#L133-L162
And https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/StyleContext.html#getFont(java.lang.String,int,int)
> size - the point size >= 1
GitHub link: https://github.com/apache/netbeans/discussions/8569#discussioncomment-13398988
----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [D] What unit of measurement does NetBeans use for fonts in the editor and GUI? [netbeans]
Posted by "PavelTurk (via GitHub)" <gi...@apache.org>.
GitHub user PavelTurk edited a discussion: What unit of measurement does NetBeans use for fonts in the editor and GUI?
In Tools → Options → Font & Colors → Font, we can set the font size. I thought the size was specified in points (pt), but today I ran a few tests, and it seems the size is actually set in pixels (px). Am I correct? Also, should the unit of measurement be explicitly specified there?
For example, in [IDEA](https://www.jetbrains.com/help/idea/settings-editor-font.html#typography-settings) `pt` is used. At the same time in [VS Code](https://www.alphr.com/vs-code-how-to-change-font/) `px` is used, and this is explicitly stated in the settings UI.
GitHub link: https://github.com/apache/netbeans/discussions/8569
----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [D] What unit of measurement does NetBeans use for fonts in the editor and GUI? [netbeans]
Posted by "PavelTurk (via GitHub)" <gi...@apache.org>.
GitHub user PavelTurk edited a discussion: What unit of measurement does NetBeans use for fonts in the editor and GUI?
In Tools → Options → Font & Colors → Font, we can set the font size. I thought the size was specified in points (pt), but today I ran a few tests, and it seems the size is actually set in pixels (px). Am I correct? Also, should the unit of measurement be explicitly specified there?
For example, in [IDEA](https://www.jetbrains.com/help/idea/settings-editor-font.html#typography-settings) `pt` is used.
GitHub link: https://github.com/apache/netbeans/discussions/8569
----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [D] What unit of measurement does NetBeans use for fonts in the editor and GUI? [netbeans]
Posted by "PavelTurk (via GitHub)" <gi...@apache.org>.
GitHub user PavelTurk deleted a comment on the discussion: What unit of measurement does NetBeans use for fonts in the editor and GUI?
For example, in [IDEA](https://www.jetbrains.com/help/idea/settings-editor-font.html#typography-settings) `pt` is used.
GitHub link: https://github.com/apache/netbeans/discussions/8569#discussioncomment-13398507
----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@netbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists