summaryrefslogtreecommitdiffstats
path: root/scene/resources/font.h
Commit message (Collapse)AuthorAgeFilesLines
* [Font] Add check for cyclic base font dependencies.bruvzg2024-08-031-2/+3
|
* [Import] Add "skip file" import option to skip (and exclude from export) ↵bruvzg2024-03-121-0/+2
| | | | importable formats, auto set it for the images used by bitmap font.
* [Font] Add option to disable embedded bitmaps loading.bruvzg2024-03-111-0/+8
|
* [TextServer / Font] Add support for customizable baseline offset.bruvzg2024-01-281-6/+14
|
* [Bitmap fonts] Add support for scaling.bruvzg2023-10-131-0/+4
|
* [TextServer] Store font extra spacing variations without making a full copy ↵bruvzg2023-09-281-1/+1
| | | | of font.
* [Text Server] Store extra spacing of individual font variations.bruvzg2023-08-241-4/+12
|
* Move registration of `fallbacks` property in the base Font classFaolan2023-08-071-0/+1
|
* [TextServer] Add support for retrieving OpenType name strings.bruvzg2023-05-221-0/+1
|
* [Font] Implement `get_char_from_glyph_index` function.bruvzg2023-03-011-0/+1
|
* [SystemFont] Add missing MSDF properties.bruvzg2023-01-261-0/+8
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* [Font] Use key structure instead of raw hash for LRU cache to avoid collisions.bruvzg2022-12-241-2/+37
|
* Use system fonts as fallback and improve system font handling.bruvzg2022-12-041-3/+24
| | | | | | | Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
* Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0Rémi Verschelde2022-08-261-6/+6
|\
| * Add font LCD sub-pixel anti-aliasing support.bruvzg2022-08-231-6/+6
| |
* | Replace Array return types with TypedArraykobewi2022-08-221-3/+3
|/
* Allow MSDF rendering for system fonts, fix crash on loading damaged / ↵bruvzg2022-08-091-0/+4
| | | | unsupported font files.
* Implement support for loading system fonts on Linux, macOS / iOS and Windows.bruvzg2022-07-261-1/+71
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-1/+1
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Use BitField hint for the TextServer enums. Add missing parts for BitField ↵bruvzg2022-07-151-8/+8
| | | | support to the GDextension API.
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-106/+158
|
* [TextServer] Adds support for TrueType / OpenType collection files (*.TTC, ↵bruvzg2022-06-071-0/+6
| | | | *.OTC).
* Replace most uses of Map by HashMapreduz2022-05-161-1/+1
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Implement Label3D node.bruvzg2022-04-221-0/+4
| | | | | | | | | Add "generate_mipmap" font import option. Add some missing features to the Sprite3D. Move BiDi override code from Control to TextServer. Add functions to access TextServer font cache textures. Add MSDF related flags and shader to the standard material. Change standard material cache to use HashMap instead of Vector.
* Unify TextServer built-in module and GDExtension code.bruvzg2022-03-171-1/+1
|
* Add options to embolden and transform font outlines to simulate bold and ↵bruvzg2022-03-111-0/+8
| | | | italic typefaces.
* Add sub-pixel glyph positioning support.bruvzg2022-02-121-0/+4
|
* Merge pull request #54794 from bruvzg/runtime_bmfont_parserRémi Verschelde2022-01-171-0/+9
|\
| * Move BMFont parser code from importer to the FontData to allow loading ↵bruvzg2021-11-091-0/+9
| | | | | | | | bitmap fonts in the runtime (without importing).
* | [TextServer] Improve ligature cursor handling.bruvzg2022-01-091-0/+3
| | | | | | | | | | | | Fix mid-grapheme hit test. Fix OpenType features property handling, add default features override option. Enable mid-grapheme cursor by default.
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | Happy new year to the wonderful Godot community!
* | Add a double-precision editor build to CIAaron Franke2021-12-091-4/+4
| |
* | align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-3/+3
|/
* Add functions for getting name and font style from dynamic and bitmap fonts.bruvzg2021-10-311-0/+9
| | | | Add font selection toolbar editor plugin.
* Ignore empty Font resources as theme override.bruvzg2021-10-251-15/+13
| | | | | Add range hint to font_size properties. Remove excessive `base_size` Font property.
* Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg2021-10-011-4/+4
| | | | interface.
* Makes FontData importable resource.bruvzg2021-08-271-120/+166
| | | | | | | Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
* Merge pull request #46045 from bruvzg/text_server_bmp_createRémi Verschelde2021-02-241-0/+6
|\ | | | | [TextServer] Restores bitmap font dynamic construction functions.
| * [Text Server] Restores bitmap font dynamic construction functions.bruvzg2021-02-151-0/+6
| |
* | [TextServer] Restore character and space extra spacing support.bruvzg2021-02-151-1/+12
|/
* Improve resource load cachereduz2021-02-111-2/+6
| | | | | | -Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* [Complex Text Layouts] Add variable fonts support.bruvzg2020-12-131-0/+4
|
* [Complex Text Layouts] Add compatibility for legacy Font resources.bruvzg2020-12-031-1/+15
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-121/+118
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-2/+2
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-13/+13
|
* Add override keywords.Marcel Admiraal2020-07-101-8/+8
|
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-4/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.