This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 144793 - I18N - font size might be hardcoded or font name might not be standard jdk font name
Summary: I18N - font size might be hardcoded or font name might not be standard jdk fo...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-08-21 21:40 UTC by Ken Frank
Modified: 2008-08-25 17:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2008-08-21 21:40:16 UTC
am scanning source code to find possible instances
of hardcoding of font sizes or font names that might
not be standard jdk font names

since hardcoding of font sizes can lead to resize issues
(which can often be solved by using dynamic resizing using
layout managers and by using global ide font size instead
of hardcoding.

and since using font names that are not standard jdk font
names can lead to some fonts not being found, especially
for asian or other non english fonts.

We realize that some of this code might not be used or that
some of these examples might not be applicable

also, this is not meant to be complete since other
instances of these situations might be present using other
api names than patterns used for scanning - please check
code to see if other such cases and fix as needed.

also, suggest checking code to see that usages of setSize
and setPreferredSize calls don't hardcode actual sizes of
dialogs or other windows if it means that dynamic resizing
would not happen in these cases


Here are some instance(s) found of these possible problems:
subversion
panel.txtAreaValue.setFont(new Font("Monospaced", Font.ITALIC, 12));
Comment 1 Tomas Stupka 2008-08-25 10:20:56 UTC
fixed 428e04ed93d3
Comment 2 Quality Engineering 2008-08-25 17:23:07 UTC
Integrated into 'main-golden', available in build *200808251401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/428e04ed93d3
User: Tomas Stupka <tstupka@netbeans.org>
Log: #144793 - I18N - font size might be hardcoded or font name might not be standard jdk font name