aboutsummaryrefslogtreecommitdiff
path: root/src/tests/testFont.cc
AgeCommit message (Collapse)AuthorFilesLines
2012-10-03Improved vertical alignment of text in FbTk::TextButtonMathias Gumz1-106/+106
The old formula for vertical align text inside FbTk::TextButton ('height/2 + font_ascent/2 - 1') produced not always good looking results, escpecially when different fonts are involved (eg, ClockTool and WorkspaceName have different fonts and font-sizes). '(height - font_ascent) / 2 - 1' produces better results. Additional changes: * added ASCII-Art to document the involved entities when calculating the baseline * rewritten tests/testFont.cc to accept multiples texts and multiple fonts * removed some internal parts of FbTk::Font from the public interface
2011-03-18some love to src/tests, use automake to use the same build environment as ↵Mathias Gumz1-8/+10
the rest of fluxbox
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2006-10-30Cosmetic patch from Slava Semushinmathias1-1/+2
2006-05-07handle utf-8 strings properly.simonb1-1/+4
use utf8 internally
2006-03-26rotated fonts, buttons, containers. Used for tabs for nowsimonb1-14/+44
2006-02-16updated copyright infomathias1-1/+1
2005-06-03- Usage of xft-fonts is prefered, except a font-description starts with '-'mathias1-9/+10
- Removed "antialias"-option completly, to enable/disable "antialias" use either <fontname>:antialias=<bool> in the style or use Xft.antialias: <bool> in your .Xdefaults - Added new styleresources: *.font.effect: <halo|shadow> *.font.shadow.x : <int> - shadow x offset *.font.shadow.y : <int> - shadow y offset *.font.shadow.color : <color> - color of shadow *.font.halo.color : <color> - color of halo - Removed 'shadow' and 'halo' options from fontdefinitions: !! Style authors have to update their styles !! - Simplified XmbFontImp to not try all possible fonts to match locale - Style authors may specify multiple fonts: <font1>|<font2>|<font3> if loading of font1 fails, fluxbox probes <font2>, etc. The last font is "fixed". Hints for style authors: - if xft tries to load a font it will _ALWAYS_ return a valid font, it doesnt have to look like the one you want to have, read more about it: http://fontconfig.org/fontconfig-user.html - export XFT_DEBUG=1 before running fluxbox helps to see which fonts are picked. eg: *.font: Verdana,Arial-12:antialias=true|-artwiz-snap-*- if fluxbox is compiled with xft this will NEVER try to load "-artwiz-snap-*-" since xft gives for sure a font, most likely Verdana or Arial but noone knows. So, if fluxbox has no xft support the first fontpattern fails and fluxbox tries the next one, which might be successful. if everything fails, it will use "fixed" - Added caching of fonts, fonts are only loaded once. - Fixed #1090902 (slow utf8 start)
2005-01-24copyright datemathias1-1/+1
2005-01-15minor stufffluxgen1-2/+1
2004-11-17needed init for font-testmathias1-2/+4
2004-09-12fix for Font drawTextfluxgen1-2/+2
2004-09-01foreground and background color as argumentfluxgen1-9/+30
2003-09-11updatefluxgen1-52/+56
2002-12-01Indenting from tabs to emacs 4-spacerathnor1-83/+83
2002-11-12linefluxgen1-2/+6
2002-10-19linesfluxgen1-6/+17
2002-10-19minorfluxgen1-0/+22
2002-10-19initial importfluxgen1-0/+95