Commit Graph

72 Commits (0d9b1a579522fa96c3257bc8df364387c7b1a743)

Author SHA1 Message Date
Andrei Kortunov f2dc25e214 Optimize bitmap fonts loading 9 months ago
Evil Eye 97009f1e23 Merge Assumeru/mystringvui 1 year ago
Bret Curtis 43a931d3c4 [#7528] Fix MyGUI 3.4.3 issues 1 year ago
Andrei Kortunov 5cfd21e9ab Do not place deprecated MyGUI property dynamically 1 year ago
Andrei Kortunov f3cf61627c Do not use deprecated MyGUI features for list boxes 1 year ago
Andrei Kortunov b3a981e0fc Simplify strings construction 1 year ago
Andrei Kortunov d3d7a663c6 Move some objects instead of copying 1 year ago
elsid d113f0fc44
Use settings values for GUI settings 1 year ago
jvoisin 6da3c3e200 Fix a gcc warning about copy
```
/home/jvoisin/dev/openmw/openmw/components/fontloader/fontloader.cpp:532:29: warning: loop variable '[key, value]' creates a copy from type 'std::pair<const int, int> const' [-Wrange-loop-construct]
            for (const auto [key, value] : additional)
                            ^
/home/jvoisin/dev/openmw/openmw/components/fontloader/fontloader.cpp:532:18: note: use reference type 'std::pair<const int, int> const &' to prevent copying
            for (const auto [key, value] : additional)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
                            &
1 warning generated.
```
2 years ago
Evil Eye 5491512905 Use string_view in more places and reduce the number of empty string literals 2 years ago
elsid 843753da14
Remove unused includes 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Project579 e5c417c968 Make sure all paths are passed as std::filesystem::path instead of std::string where possible. 2 years ago
AnyOldName3 4e8e2e1c60 Eliminate &thing[0] pattern 2 years ago
psi29a 4ff7f8ddfb Merge branch 'string_viewing' into 'master'
Use string_view in yet more places

See merge request OpenMW/openmw!2348
2 years ago
Andrei Kortunov 3037f190be Implement per-font resolution 2 years ago
Andrei Kortunov 3178868cc3 Improve built-in default fonts 2 years ago
Evil Eye fb9bc5f535 Use string_view in Fallback::Map 2 years ago
Andrei Kortunov 9e1ab590f1 Cleanup fonts loading 2 years ago
Andrei Kortunov c3d3f3140b Allow to change font settings in the launcher 2 years ago
elsid f99ed6f1db
Split components/misc/stringops.hpp into multiple headers
Replace all ciEqual overloads with one having std::string_view as argument.
2 years ago
Andrei Kortunov a787625c65 Remove code which became redundant due to changes in way how we load bitmap fonts 2 years ago
elsid 5f800279ac
Remove unused Gui::FontLoader::mTextures 2 years ago
Andrei Kortunov 845a812ebf Drop fonts export - users are supposed to use TrueType fonts or mods with legacy format 2 years ago
Andrei Kortunov 5bc5c1bb0c Use our fonts as a fallback 2 years ago
Andrei Kortunov 1f864e3127 Do not override monospace font 2 years ago
Andrei Kortunov 6f6b5ba04b Some refactoring 2 years ago
Andrei Kortunov db686b25c2 Use fallback data from openmw.cfg to setup fonts 2 years ago
Andrei Kortunov 8513bc9620 Fix build error on MSVC 2 years ago
Andrei Kortunov 8fc3635c2c Use case-insensitive font keys, remove debug code 2 years ago
Andrei Kortunov c47a48e25d Inject layout files to VFS 2 years ago
Andrei Kortunov 2630bc21dd Allow to override MyGUI layout 2 years ago
Andrei Kortunov 4ddba5142e Introduce font mappings 2 years ago
Andrei Kortunov dd04bfccfb Load fonts 2 years ago
jvoisin 0cc304e659 Clean up MyGUI includes
This should improve incremental compilation.
3 years ago
jvoisin 6feb92a9bf Remove boost::filesystem from a couple of files 3 years ago
elsid 94c1d0cced
Use unique_ptr to store istream 3 years ago
elsid 071ab3f650
Fix out of bounds access for std::string_view 3 years ago
elsid c75e938c46
Return string_view from Utf8Encoder functions
To avoid redundant std::string constructions.
3 years ago
Alexei Dobrohotov 7a0c13fcf8 Make better use of std::clamp 3 years ago
Cédric Mocquillon 6817282097 Move getFileExtension to common header and use instead of repeating same code 3 years ago
Cédric Mocquillon c2df0949e2 Change normalizeFilename signature 3 years ago
Cédric Mocquillon d4e26746a3 Use recurse subdirectory iterator to iterate over the VFS without exposing internal details 3 years ago
jvoisin 5c02e4dddc Delete an outdated/irrelevant comment 4 years ago
jvoisin 5470b3168b Use a switch-case instead of a map, on elsid@' advice
elsid@ said:

> From my measurements static map + exceptions is slower than original code
when loading polish morrowind localization by 25% with GCC 10.2.0. Switch-based
solution is about 25x times faster than the original and static map with find
only is ~20x faster.
4 years ago
jvoisin 770f91de77 Clean the fontloader's hack for polish font up
- The map can be static and const
- The map can be initialized inline
- No need to do a `find` + `[]` instead of `at`
4 years ago
jvoisin aec3c74fa5 Sprinkle some [[noreturn]] where possible 4 years ago
Andrei Kortunov 33b8233887 Validate GUI scaling and place it to the launcher 4 years ago
Andrei Kortunov 903b89a0ff Add bound for UI scale factor, as it specified in docs 4 years ago
Gleb Mazovetskiy 1e113710ef Clean-up FontLoader::loadFontFromXml fix
Follow-up to !559
4 years ago