summaryrefslogtreecommitdiff
path: root/src/gui/truetypefont.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-01-25Ported to SDL2Thorbjørn Lindeijer1-1/+3
2012-03-18Removed some 'const' keywords from value returnsThorbjørn Lindeijer1-2/+2
It makes no sense to mark a return value as const when it is returned by value. This only makes sense if the return value is passed by reference, in order to prevent the receiver from modifying the value. Also made some other small adjustments. A std::string does not need to be initialized to "" explicitly and getSafeUtf8String could take its parameter by reference. Reviewed-by: Yohann Ferreira
2012-02-07Made BrowserBox use the recommended line skip for its fontThorbjørn Lindeijer1-0/+5
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
2010-10-19Fix crash in drawing incorrect strings.Andrei Karas1-11/+11
Reviewed-by: cody
2010-05-28Fix memory leak in last patch.Andrei Karas1-0/+1
Reviewed-by: Bertram
2010-05-27Fix drawing incorrect utf8 strings issue.Andrei Karas1-3/+8
Reviewed-by: Bertram Resolve: Manasource Mantis #143
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-13Remove imprecise operator== and just compare the textThorbjørn Lindeijer1-6/+1
2010-02-13Optimise TrueTypeFont::getWidthSteve Cotton1-0/+17
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-11Cleanup GUI classesJared Adams1-0/+1
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2009-05-14Don't apply GUI opacity to the selected value of a DropDownBjørn Lindeijer1-4/+4
2009-04-15Also hardcode the bold font, we ship it after allBjørn Lindeijer1-1/+1
Plus some tweaks and cleanups.
2009-03-30Fixed checking for loading fonts before applying a styleBernd Wachter1-1/+2
2009-02-19Added a pickup notification as particle effect. Also make a ui option to ↵Majin Sniper1-1/+2
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-8/+8
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-4/+0
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-10Removed many pointless comparisons with NULLBjørn Lindeijer1-1/+1
Sometimes it's nice for clarity, but most of the time this is just clutter. C++ != Java. :)
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-11Removed many pointless comparisons with NULLBjørn Lindeijer1-1/+1
Sometimes it's nice for clarity, but most of the time this is just clutter. C++ != Java. :)
2009-02-10Fixed font glyph caching.Ira Rice1-4/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-09Merged with Aethyra master as of 2009-01-27Bjørn Lindeijer1-3/+2
Conflicts: Almost everywhere.
2009-01-24Code reformattingBjørn Lindeijer1-2/+0
2009-01-24Code reformattingBjørn Lindeijer1-4/+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-15Style cleanups throughout most of the code. Splitting function type fromIra Rice1-7/+4
the function names should no longer be around. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-06Fixed the true type font to render unicode nowBjørn Lindeijer1-2/+2
2009-01-06Fixed the true type font to render unicode nowBjørn Lindeijer1-2/+2
2009-01-05Fixed rendering of special charactersBjørn Lindeijer1-2/+2
The font was interpreting the strings as UTF8, as they are in the mainline client. But in the eAthena client they are regular text.
2009-01-05Increased text chunk cache size to improve performance when a lot of text is ↵Philipp Sehmisch1-1/+1
on the screen. (cherry picked from mainline commit 483c76d1b2433bc34f67406a10bf409fb2daafe1)
2009-01-05Image alpha should also be set to 1, in case it was changed before.Bjørn Lindeijer1-7/+7
(cherry picked from mainline commit 0962fc8b567279a6e97e13e4b3f2f9f2ffe304c0)
2009-01-05Added support for alpha blending to true type font drawing.Philipp Sehmisch1-0/+7
(cherry picked from mainline commit 89a1dcb59be3e531cc0761c32d1aa70e141d4a12)
2009-01-05Fixed double-free of true-type resources.Guillaume Melquiond1-2/+5
(cherry-picked from mainline)
2009-01-05Modified the Aethyra client to use the TMW TrueType class, rather thanEugenio Favalli1-0/+170
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-04Fixed rendering of special charactersBjørn Lindeijer1-2/+2
The font was interpreting the strings as UTF8, as they are in the mainline client. But in the eAthena client they are regular text.
2009-01-02Removed duplicate TrueTypeFont class declarationBjørn Lindeijer1-6/+3
Noticed by QOAL
2008-12-29Increased text chunk cache size to improve performance when a lot of text is ↵Philipp Sehmisch1-1/+1
on the screen. (cherry picked from mainline commit 483c76d1b2433bc34f67406a10bf409fb2daafe1)
2008-12-29Image alpha should also be set to 1, in case it was changed before.Bjørn Lindeijer1-7/+7
(cherry picked from mainline commit 0962fc8b567279a6e97e13e4b3f2f9f2ffe304c0)
2008-12-29Added support for alpha blending to true type font drawing.Philipp Sehmisch1-0/+7
(cherry picked from mainline commit 89a1dcb59be3e531cc0761c32d1aa70e141d4a12)
2008-12-29Fixed double-free of true-type resources.Guillaume Melquiond1-2/+5
(cherry-picked from mainline)
2008-12-29Added support for True Type Fonts.Eugenio Favalli1-0/+170
(cherry-picked from mainline)