christmo / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

Ability to change fonts #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would really like the ability to change fonts for categories and regular
list items. Thought it was strange that you could not change this in the
SourceListColorScheme... have I missed something?

Original issue reported on code.google.com by matsmort...@gmail.com on 30 Mar 2009 at 6:40

GoogleCodeExporter commented 8 years ago
Hmmm...not sure if I really want to allow this on the Mac, as this would break 
the fidelity with Mac Source Lists. I 
guess on Windows it doesn't matter as much. What font do you want to change it 
too?

Original comment by kenneth....@gmail.com on 30 Mar 2009 at 6:53

GoogleCodeExporter commented 8 years ago

Original comment by kenneth....@gmail.com on 30 Mar 2009 at 6:53

GoogleCodeExporter commented 8 years ago
This should be enabled for all platforms since the default font doesn't account 
for
things like non-Western character sets and ends up rendering those as boxes.

Original comment by sten...@gmail.com on 21 May 2009 at 7:43

GoogleCodeExporter commented 8 years ago
Doesn't the default font on non-Western platforms work correctly? That is, if 
you create a JTree, I'm quite sure it 
will render correctly without having to change the font.

Original comment by kenneth....@gmail.com on 21 May 2009 at 12:27

GoogleCodeExporter commented 8 years ago
You're right about that for Mac, but on Windows, it does the whole box thing. 

However, it is still a good idea to be able to change the font size on Mac - the
characters are kinda illegible as they are right now. I'll send you a 
screenshot.

Original comment by sten...@gmail.com on 22 May 2009 at 7:14

GoogleCodeExporter commented 8 years ago
Hi Jon,

So on Windows, the SourceList renders little squares for the Chinese 
characters? 

I'm using derive font like this:

UIManager.getFont("Label.font").deriveFont(Font.BOLD, 11.0f);

which should allow Java to pickup the default fall-through capabilities of a 
Windows font -- that is, if Windows can't 
render a character with the system font, it will fall through and render it 
with the a font that can handle it.

What happens when you use a plain JTree -- does it render the characters 
correctly? Also, if you're willing to edit 
the source code, can you comment out the setFont lines in SourceListTreeUI 
(line 412, 443 and 444).

Thanks Jon,
-Ken

Original comment by kenneth....@gmail.com on 22 May 2009 at 12:05

GoogleCodeExporter commented 8 years ago
Issue 92 has been merged into this issue.

Original comment by kenneth....@gmail.com on 19 Jun 2009 at 11:39