aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Font.cc
AgeCommit message (Collapse)AuthorFilesLines
2013-06-22cosmeticsMathias Gumz1-2/+3
2012-10-03Improved vertical alignment of text in FbTk::TextButtonMathias Gumz1-27/+48
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
2012-01-04Pre-increment non-primitive types.Ryan Pavlik1-2/+2
Found with cppcheck: "Prefix ++/-- operators should be preferred for non-primitive types. Pre-increment/decrement can be more efficient than post-increment/decrement. Post-increment/decrement usually involves keeping a copy of the previous value around and adds a little extra code."
2011-10-31FbTk/FbString.cc,Font.cc: Windows doesn't have nl_langinfoRyan Pavlik1-2/+2
2010-09-08introduced FbTk::BidiStringMathias Gumz1-23/+11
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
2010-09-04added support for bidirectional textKen Bloom1-22/+27
2009-09-30cosmetic fixes: removed redundant ';' + some whitespacesMathias Gumz1-2/+2
2008-04-21some fixes for gcc 3.4Thomas Orgis1-1/+2
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-3/+0
2007-03-05fixed compiling error with xft disabledmarkt1-1/+1
2007-01-05change default Xft font so that it works properly with rotation (see simonb1-5/+28
notes in ChangeLog or FbTk/Font.cc)
2006-11-12removed duplicate headers, patch from Slava Semushin aka php-coderfluxgen1-6/+0
2006-10-30Cosmetic patch from Slava Semushinmathias1-22/+22
2006-05-13just a minor changefluxgen1-10/+10
2006-05-07handle utf-8 strings properly.simonb1-141/+12
use utf8 internally
2006-04-06fix size_t issues and other 64bit-highlighted warningssimonb1-1/+1
2006-03-26rotated fonts, buttons, containers. Used for tabs for nowsimonb1-51/+11
2006-02-16updated copyright infomathias1-1/+1
2006-01-22minor stufffluxgen1-1/+1
2006-01-03unused headersfluxgen1-1/+0
2005-12-22removed unused variablefluxgen1-1/+0
2005-06-15Fixes #1216020, *.font.effect wont get cleared if not defined in stylemathias1-1/+15
2005-06-03- Usage of xft-fonts is prefered, except a font-description starts with '-'mathias1-166/+95
- 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-05-12llittle rewrite for the FbTk_istringstream usage.. was needed coz gcc2.95.xmathias1-11/+3
systems had problems before. with this change fluxbox should compile on such old compilers.
2005-02-07cosmetic white-space-stuff and/or copyright datesmathias1-0/+1
2005-01-24copyright datemathias1-1/+1
2004-12-21adds imlib2-support to fluxbox: allows us to load several imageformatsmathias1-3/+8
besides xpm. to get imlib2 support in fluxbox one has to ./configure --enable-imblib2 default is disabled. a fluxbox-binary that supports imlib2 will have IMLIB2 in "fluxbox -info"-output explanation to the changed files: * xft.m4 -> acinclude.m4 + added ac_path_generic.m4 (from http://ac-archive.sourceforge.net/Miscellaneous/ac_path_generic.html) * configure.in, Makefile.am, src/FbTk/Makefile.am changed to handle imlib2-support * Font.cc/hh Image.cc/hh App.cc fluxbox.cc consistent way of init for global stuff for fonts and imagehandlers. * rest of changes just add the imlib2-code, pretty straightforward
2004-11-19fixes fontsituations when text disappears in non-antialias modemathias1-14/+13
primary problem was to use utf8 when in fact the FontSet wasnt utf8.
2004-11-19svn propset svn:keywords "Id"mathias1-1/+1
2004-10-31fix #1057499akir1-4/+5
2004-09-11Font::drawText takes reference to FbDrawable instead of X Drawable + some ↵fluxgen1-9/+9
code cleaning
2004-09-03cosmeticakir1-28/+30
2004-09-01final fix for iconv-issues on sun/sparcsakir1-2/+2
2004-08-31fix for the missing CODESET on openbsdakir1-3/+7
2004-08-31hopefully final fix for missing iconvakir1-5/+9
2004-08-31have const msg ptr to iconvfluxgen1-5/+20
2004-08-31checking for have iconvfluxgen1-2/+9
2004-08-31add autoconf check for std c++ headersrathnor1-4/+16
2004-08-28fix a issue with fonts coming up blankrathnor1-3/+3
2004-08-25make use of "size" in "recode" -> fixes drawin the cursor in textboxesakir1-3/+6
2004-08-18fix handling of font+text encodingsrathnor1-32/+25
2004-08-14tempfix for empty localefluxgen1-1/+5
2004-08-10adding halo and shadow options to font loading, patch from Mathias Gumz and ↵fluxgen1-41/+144
c. mccreesh (ciaranm)
2004-08-10utf-8 fix, a fixed patch from Sergey Kuleshovfluxgen1-16/+123
2004-06-07update NLS string handling...rathnor1-3/+6
2003-12-01fixed shadow option bugfluxgen1-6/+35
2003-11-28added shadowfluxgen1-6/+34
2003-01-05using bad_cast from typeinfofluxgen1-1/+2
2002-12-08fixed rotate argument for drawTextfluxgen1-3/+24
2002-12-01Indenting from tabs to emacs 4-spacerathnor1-68/+68