summaryrefslogtreecommitdiff
path: root/src/gui/truetypefont.h
AgeCommit message (Collapse)AuthorFilesLines
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-4/+4
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2012-08-14Can now build using cmake on OSXSocapex1-4/+0
Tested-by: Frost.
2012-02-07Made BrowserBox use the recommended line skip for its fontThorbjørn Lindeijer1-0/+7
SDL_ttf provides a separate function for getting the recommended line skip, or the spacing between two lines of text. When rendering multiple lines of text this should be used rather than the visual height of the font. Since the information is only available for TrueTypeFont, a dynamic_cast was used with a fallback on gcn::Font::getHeight. Also made some small tweaks but nothing that really affects performance. Reviewed-by: Yohann Ferreira
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-12-02Mac: Change to local SDL inclues.David Athay1-1/+1
2011-04-09Removed a lot of useless "documentation"Thorbjørn Lindeijer1-3/+0
I have to admit I contributed a large part of these. Sorry for that. Less empty space, more attention to the code. Acked-by: Jared Adams
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-13Optimise TrueTypeFont::getWidthSteve Cotton1-1/+2
Use the cache created by TTF::drawString, drops the cost of TTF::getWidth from 5% of runtime to 0.5%. It increases the cost of calculating line-wrapping in the BrowserBox, but overall it's a saving, even with the BrowserBox recalculating on every redraw.
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-01-12Standardize header orderJared Adams1-3/+4
Also remove some extra new lines and fix eAthena's PartyTab define guards.
2009-03-29Fixed compilation on WindowsPhilipp Sehmisch1-0/+4
2009-03-25A host of code style fixesBjørn Lindeijer1-1/+1
Mostly putting & and * in the right place and making some getters const.
2009-03-19Fixed SDL_ttf include againBjørn Lindeijer1-1/+1
Please set up your include path if this include doesn't work for you.
2009-03-18Windows compilation fixesPhilipp Sehmisch1-1/+1
2009-03-18Fixed a broken Mac include for SDL_ttfBjørn Lindeijer1-2/+2
Reviewed-by: trapdoor
2009-02-19Added a pickup notification as particle effect. Also make a ui option to ↵Majin Sniper1-1/+1
enable/disable this effect (default is off) and another option to disable the pickup notification in the chat log (default is on).
2009-02-15Fixes some variable names to conform to naming conventionBjørn Lindeijer1-1/+1
Please do remember that member variables are prefixes with 'm', so that they are easily distinguishable.
2009-02-15Merge commit 'aethyra/master'Bjørn Lindeijer1-0/+6
Conflicts: CMakeLists.txt configure.ac data/help/header.txt packaging/windows/setup.nsi po/POTFILES.in src/being.cpp src/being.h src/game.cpp src/gui/color.cpp src/gui/color.h src/gui/equipmentwindow.h src/gui/popupmenu.cpp src/gui/recorder.cpp src/gui/setup_colors.h src/gui/setup_keyboard.cpp src/gui/setup_keyboard.h src/gui/skill.cpp src/gui/speechbubble.cpp src/gui/speechbubble.h src/gui/table.cpp src/keyboardconfig.cpp src/keyboardconfig.h src/localplayer.cpp src/main.cpp src/main.h src/map.cpp src/resources/colordb.cpp src/resources/colordb.h src/resources/emotedb.cpp src/resources/emotedb.h src/text.cpp src/text.h src/tmw.rc src/winver.h
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-10Fixed font glyph caching.Ira Rice1-0/+6
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-09Merged with Aethyra master as of 2009-02-09Bjørn Lindeijer1-1/+0
Conflicts: A lot of files...
2009-02-04Few more unneeded headers that weren't noticed originally in the lastIra Rice1-1/+0
commit. Also, while the overall performance improved a little, it doesn't appear to be as drastic as the last commit was suggesting. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-25Removed the TMW branding from header guardsBjørn Lindeijer1-2/+2
2009-01-25Removed the TMW branding from header guardsBjørn Lindeijer1-2/+2
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-18Updated some apple specific codeDavid Athay1-0/+4
2009-01-18Updated some apple specific codeDavid Athay1-0/+4
2009-01-15Style cleanups throughout most of the code. Splitting function type fromIra Rice1-2/+0
the function names should no longer be around. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-05Image alpha should also be set to 1, in case it was changed before.Bjørn Lindeijer1-1/+1
(cherry picked from mainline commit 0962fc8b567279a6e97e13e4b3f2f9f2ffe304c0)
2009-01-05Modified the Aethyra client to use the TMW TrueType class, rather thanEugenio Favalli1-0/+67
the inbuilt GUIChan TrueType class. (Didn't use it originally because I didn't see the difference, when there's a considerable speedup, and that originally the import for TMW was broken code at the time, which has been fixed since.)
2009-01-02Removed duplicate TrueTypeFont class declarationBjørn Lindeijer1-71/+4
Noticed by QOAL
2008-12-29Image alpha should also be set to 1, in case it was changed before.Bjørn Lindeijer1-1/+1
(cherry picked from mainline commit 0962fc8b567279a6e97e13e4b3f2f9f2ffe304c0)
2008-12-29Added support for True Type Fonts.Eugenio Favalli1-0/+134
(cherry-picked from mainline)