Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb9c1e5
)
ide/dialogs/FontPicker: Tweak for better font row height
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 4 Aug 2016 13:38:17 +0000
(09:38 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 4 Aug 2016 13:38:17 +0000
(09:38 -0400)
ide/src/dialogs/FontPicker.ec
patch
|
blob
|
history
diff --git
a/ide/src/dialogs/FontPicker.ec
b/ide/src/dialogs/FontPicker.ec
index
b3d160b
..
b7595f4
100644
(file)
--- a/
ide/src/dialogs/FontPicker.ec
+++ b/
ide/src/dialogs/FontPicker.ec
@@
-158,7
+158,7
@@
class FontPicker : Window
{
int maxH = 12 + 5;
float size = dbSize.GetData(dfSize);
- int maxSize = (int)(size * 96 / 72 *
1.5
);
+ int maxSize = (int)(size * 96 / 72 *
2
);
for(f : fontResources)
{
Font font = f.font;
@@
-167,7
+167,7
@@
class FontPicker : Window
displaySystem.FontExtent(font, "W", 1, null, &h);
h += 5;
- h = font.ascent + font.descent + 5;
+
//
h = font.ascent + font.descent + 5;
if(h > maxSize) h = maxSize;
maxH = Max(maxH, h);
}