summaryrefslogtreecommitdiff
path: root/scene/resources/font.cpp
AgeCommit message (Collapse)Author
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-09-29Merge pull request #66552 from bruvzg/64_bitfieldsRémi Verschelde
Change BitField to use 64-bit int.
2022-09-28Fix Font::_is_cyclic.bruvzg
2022-09-28Change BitField to use 64-bit int.bruvzg
2022-09-21Let the cached `TextLine` reset the width in `get_string_size`Rindbee
Previously, the cached `TextLine` would set the width in `draw_string`, but not in `get_string_size`, which resulted in unexpected results returned by `get_string_size` in some cases.
2022-09-13[Font] Remove unnecessary cleanup and `changed` signal emission from the ↵bruvzg
destructor.
2022-08-29Rename String `plus_file` to `path_join`Aaron Franke
2022-08-26Add ThemeDB, expose previously static Theme methodsYuri Sizov
2022-08-26Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0Rémi Verschelde
2022-08-26Merge pull request #64305 from bruvzg/ts_reset_dataRémi Verschelde
2022-08-23Add font LCD sub-pixel anti-aliasing support.bruvzg
2022-08-22Replace Array return types with TypedArraykobewi
2022-08-18Merge pull request #64156 from bruvzg/sys_msdfClay John
Allow MSDF rendering for system fonts, fix crash on loading damaged / unsupported font files.
2022-08-15break out of font search loop after first matchdanboo
The documentation for the font_names property indicates: Array of font family names to search, first matching font found is used.
2022-08-12[Font] Set TextServer font data pointer when it's null, to prevent TS from ↵bruvzg
reading old, non-existing data.
2022-08-09Allow MSDF rendering for system fonts, fix crash on loading damaged / ↵bruvzg
unsupported font files.
2022-07-29Remove Signal connect bindsJuan Linietsky
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
2022-07-27Merge pull request #62973 from bruvzg/sysfont_supportRémi Verschelde
2022-07-26Fix unnamed arguments in XML docsRedMser
2022-07-26Implement support for loading system fonts on Linux, macOS / iOS and Windows.bruvzg
2022-07-15Use BitField hint for the TextServer enums. Add missing parts for BitField ↵bruvzg
support to the GDextension API.
2022-07-06Refactor Font configuration and import UI, and Font resources.bruvzg
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-06-13Merge pull request #61772 from bruvzg/ft_ot_collectRémi Verschelde
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-06-07[TextServer] Adds support for TrueType / OpenType collection files (*.TTC, ↵bruvzg
*.OTC).
2022-05-12Use new HashMap implementation in the TextServer, and Font.bruvzg
2022-04-22Implement Label3D node.bruvzg
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.
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-03-28String: Remove TTR and DTR defines in non-tools buildRémi Verschelde
This ensures we don't use TTR in runtime code, as it's specifically meant to source translations for the editor.
2022-03-17Unify TextServer built-in module and GDExtension code.bruvzg
2022-03-11Add options to embolden and transform font outlines to simulate bold and ↵bruvzg
italic typefaces.
2022-02-12Add sub-pixel glyph positioning support.bruvzg
2022-01-29simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke
2022-01-17Merge pull request #54794 from bruvzg/runtime_bmfont_parserRémi Verschelde
2022-01-09[TextServer] Improve ligature cursor handling.bruvzg
Fix mid-grapheme hit test. Fix OpenType features property handling, add default features override option. Enable mid-grapheme cursor by default.
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-12-09Add a double-precision editor build to CIAaron Franke
2021-12-09align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-20Expose `FontData::{set,get}_fixed_size` methodsDanil Alexeev
2021-11-09Move BMFont parser code from importer to the FontData to allow loading ↵bruvzg
bitmap fonts in the runtime (without importing).
2021-10-31Add functions for getting name and font style from dynamic and bitmap fonts.bruvzg
Add font selection toolbar editor plugin.
2021-10-25Ignore empty Font resources as theme override.bruvzg
Add range hint to font_size properties. Remove excessive `base_size` Font property.
2021-10-09Fix missing argument names in bindingsRémi Verschelde
While at it, tweak some boolean setters to use `p_enabled` for the bool. Also renames `draw_minimap()` to `set_draw_minimap()`.
2021-10-01Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg
interface.
2021-10-01[FontData] Fixes saving copy of the font source data, if it was created from ↵bruvzg
built-in font.
2021-09-22Fill variation coordinates dictionary with default values when FontData is ↵bruvzg
set/added.
2021-09-20Add FontData cache index check, remove excessive loop.bruvzg
2021-08-27Makes FontData importable resource.bruvzg
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.