aboutsummaryrefslogtreecommitdiff
path: root/src/fontengine.cpp
AgeCommit message (Collapse)Author
2018-11-28Move client-specific files to 'src/client' (#7902)Quentin Bazin
Update Android.mk Remove 'src/client' from include_directories
2018-04-04Fix last performance-type-promotion-in-math-fn problemsLoic Blot
2017-11-08Fix issue Minetest crash when custom font path is not existMuhammad Rifqi Priyo Susanto
We try to use default fallback for both mono and main font when custom font path is not exist. This way, if Minetest is not corrupted, we could avoid crash.
2017-08-20Modernize code: very last fixes (#6290)Loïc Blot
Last modernization fixes
2017-06-26Isolate irrlicht references and use a singleton (#6041)Loïc Blot
* Add Device3D class which will contain IrrlichtDevice interface move getSupportedVideoDrivers to Device3D Add Device3D singleton & use it in various places Rename Device3D to Rendering engine & add helper functions to various device pointers More singleton work RenderingEngine owns draw_load_screen move draw functions to RenderingEngine Reduce IrrlichtDevice exposure and guienvironment RenderingEngine: Expose get_timer_time() to remove device from guiEngine Make irrlichtdevice & scene manager less exposed * Code style fixes * Move porting::getVideoDriverName, getVideoDriverFriendlyName, getDisplayDensity, getDisplaySize to RenderingEngine Fix XORG_USED macro -> RenderingEngine + create_engine_device from RenderingEngine constructor directly * enum paralax => enum parallax
2017-06-20Merge cguittfont lib in irrlicht change folder. (#6016)Loïc Blot
* Merge cguittfont lib in irrlicht change folder. This remove hack and static lib for FreeType
2017-06-16C++11 patchset 9: move hardcoded init parameters to class definitions (part ↵Loïc Blot
1) (#5984) * C++11 patchset 9: move hardcoded init parameters to class definitions C++11 introduced the possibility to define the default values directly in class definitions, do it on current code Also remove some unused attributes * CollisionInfo::bouncy * collisionMoveResult::collides_xy * collisionMoveResult::standing_on_unloaded * Clouds::speed * More constructor cleanups + some variables removal * remove only write guiFormSpecMenu::m_old_tooltip * move header included inside defintions in genericobject.h * remove some unused since years exception classes * remove unused & empty debug_stacks_init * remove unused & empty content_nodemeta_serialize_legacy * remove forgotten useless bool (bouncy) in collision.cpp code
2017-03-05Font: attempt fallback font, abort if no fonts found.Auke Kok
If you happen to have a font_path setting that is incorrect, minetest will just attempt to start the gui without a valid font which leads to a segfault later on. We can attempt to load the fallback font path fairly easy, but if that fails we should give up with a proper error message and not a weird segfault later. This forces an abort() if the fallback fails as well, and prints a useful error message to the console.
2015-08-25Change i++ to ++iDavid Jones
2015-07-09Settings: pass name to callbacks by referenceest31
Spare some copies.
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-01-25Settings fixes Make the GameGlobalShaderConstantSetter use the settings ↵gregorycu
callback (8% perf improvement in game loop) Ensure variable is set Ensure settings callback is threadsafe
2015-01-25Revert "Make the GameGlobalShaderConstantSetter use the settings callback ↵Craig Robbins
(8% perf improvement in game loop)" This reverts commit a555e2d9b0ccee452996381a44677b8bec210036.
2015-01-23Make the GameGlobalShaderConstantSetter use the settings callback (8% perf ↵gregorycu
improvement in game loop) Amend the settings callback to support userdata
2014-12-29FontEngine: Don't use file extension to check font file compatibilitykwolekr
2014-12-12Fix MSVC compiling warnings and remove an unused textureSmallJoker
2014-11-30Fix segfault at exit caused by non grabbed fontKahrl
2014-11-30Make hud use fontengine toosapier
Fix non coding style conforming glb_fontengine to g_fontengine Fix fonts never been deleted due to grabbed to often
2014-11-30Implement proper font handlingsapier