summaryrefslogtreecommitdiff
path: root/editor/editor_fonts.cpp
AgeCommit message (Collapse)Author
2022-09-14Do not use horizontal hinting for the editor monospace font.bruvzg
2022-08-23Add font LCD sub-pixel anti-aliasing support.bruvzg
2022-07-21Rename OSX to macOS and iPhoneOS to iOS.bruvzg
2022-07-07Fix regressions from Font refactorbruvzg
Fixes `p_font.is_null()` errors due to incorrect resource type used. Fixes code editor font not set correctly, and OpenType features applied to the wrong font.
2022-07-06Refactor Font configuration and import UI, and Font resources.bruvzg
2022-04-30Improve the VisualShader/VisualScript editor UIHendrik Brucker
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-03-22[Help] Add simulated slanted font support to the editor help.bruvzg
2022-03-14Generate simulated bold font from the custom font if no custom bold font set.bruvzg
2022-03-13Add simulated bold variant to the editor CJK fonts.bruvzg
2022-03-11Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde
`DirAccess *` needs to be deleted manually, and this is often forgotten especially when doing early returns with `ERR_FAIL_COND`. `DirAccessRef` is deleted automatically when it goes out of scope. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-02-12Add sub-pixel glyph positioning support.bruvzg
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-08Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde
This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
2022-02-06Add missing SNAME macro optimization to all theme methods calljmb462
2022-01-23[Editor] Disable contextual alternates (coding ligatures) outside of code ↵bruvzg
editor.
2022-01-20Merge pull request #36198 from Calinou/code-font-jetbrains-monoRémi Verschelde
2022-01-06Merge pull request #56376 from pycbouh/theme-tombe-les-theme-propertiesRémi Verschelde
2022-01-05Use JetBrains Mono as the editor's default code fontHugo Locurcio
This recently released font has been gaining popularity thanks to its readability and aesthetics. It also features font ligatures (enabled by default, but can be disabled in the Editor Settings). Its character set isn't as extensive as Hack's, but it should be sufficient for most uses. More information at <https://www.jetbrains.com/lp/mono/>. This also reorders the third-party font notices to be in alphabetical order.
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-12-31Correctly use fallback Theme values as last resortYuri Sizov
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-10-25Ignore empty Font resources as theme override.bruvzg
Add range hint to font_size properties. Remove excessive `base_size` Font property.
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.
2021-07-19[Editor Fonts] Add Noto Sans Bold font variant for supported languages.bruvzg
2021-07-13Add header theme type variations to labelskobewi
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-11Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde
File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
2021-06-02Use bold fonts in editorreduz
* Labels are now bold * Categories in trees are bold * Main editor buttons are bold * Fixed section folding arrows in inspector
2021-01-01Update copyright statements to 2021Rémi Verschelde
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 🎆
2020-12-13[Complex Text Layouts] Add variable fonts support.bruvzg
2020-11-26[Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg
use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
2020-07-03Change how default fonts are created, fixes #39235Juan Linietsky
Also fixes file dialog icons.
2020-04-10Improve shortcut formatting in docsYuri Sizov
2020-03-27Fix default editor font.bruvzg
Fix popup_centered_clamped definition typo.
2020-03-08Add rotation widget to 3D viewportjfons
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-10-21Fix validating editor bold fontvolzhs
2019-10-04Fixed warnings text using custom font and color setting.Hanif Bin Ariffin
Fixes #31917 Added missing font and color override.
2019-08-14Add an "Auto" editor font hinting setting to match OS font renderingHugo Locurcio
The "Auto" setting picks the font hinting setting that best matches the operating system's font rendering settings. This font hinting setting is now the default.
2019-07-28Simplify editor settings related to font hinting and antialiasingHugo Locurcio
A single setting is now used to control the font hinting/antialiasing settings of both main and code fonts. This means there are 2 settings in total (instead of 4). Font settings were also reordered for clarity.
2019-06-15Add support for bold fonts in the editor helpHugo Locurcio
This also makes it possible to use the strikethrough tag (`[s]`) in the editor help.
2019-06-14Fix help source font setting and related cleanupRémi Verschelde
This was a regression from #28107 due to a typo in the `initial_set` call. I used the opportunity to harmonize the font settings by ensuring we only get values in `editor_fonts.cpp` and set them all with proper and consistent hint ranges in `editor_settings.cpp`. Fixes #29774.
2019-05-28Merge pull request #28107 from Amssat221/issue28105Rémi Verschelde
Set range (10-50) to help source font size
2019-05-21Expression node for visual shadersChaosus
2019-04-30Set range and change EDITOR_DEF to EDITOR_GETGuillermo
Fix indentation Fix Indentation! Remove 14
2019-01-18Editor source status font size, fixes #25039Melvin Winstroem-Moeller
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-11-10Add a property to control DynamicFont anti-aliasingHugo Locurcio
- Editor font anti-aliasing can now be disabled in the Editor Settings. - DynamicFonts used in projects can now have their anti-aliasing disabled in their DynamicFontData child. Changes will be visible upon reloading the scene in the editor.
2018-09-29Fix warning about functions defined but not used [-Wunused-function]Rémi Verschelde
Fixes the following GCC 5 warnings: ``` core/io/zip_io.h:128:26: warning: 'zlib_filefunc_def zipio_create_io_from_file(FileAccess**)' defined but not used [-Wunused-function] core/script_debugger_remote.cpp:110:17: warning: 'ObjectID safe_get_instance_id(const Variant&)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:103:12: warning: 'int _socket_create(IP::Type&, int, int)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:45:15: warning: 'size_t _set_sockaddr(sockaddr_storage*, const IP_Address&, int, IP::Type)' defined but not used [-Wunused-function] drivers/unix/socket_helpers.h:76:15: warning: 'size_t _set_listen_sockaddr(sockaddr_storage*, int, IP::Type, IP_Address)' defined but not used [-Wunused-function] editor/editor_fonts.cpp:40:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function] editor/editor_themes.cpp:85:26: warning: 'Ref<StyleBoxFlat> change_border_color(Ref<StyleBoxFlat>, Color)' defined but not used [-Wunused-function] editor/import/editor_import_collada.cpp:493:13: warning: 'void _generate_normals(const PoolVector<int>&, const PoolVector<Vector3>&, PoolVector<Vector3>&)' defined but not used [-Wunused-function] editor/import/editor_import_collada.cpp:524:13: warning: 'void _generate_tangents_and_binormals(const PoolVector<int>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, PoolVector<float>&)' defined but not used [-Wunused-function] editor/pvrtc_compress.cpp:118:13: warning: 'void _compress_etc(Image*)' defined but not used [-Wunused-function] modules/etc/image_etc.cpp:89:13: warning: 'void _decompress_etc1(Image*)' defined but not used [-Wunused-function] modules/etc/image_etc.cpp:93:13: warning: 'void _decompress_etc2(Image*)' defined but not used [-Wunused-function] modules/gdscript/editor/gdscript_highlighter.cpp:46:13: warning: 'bool _is_whitespace(CharType)' defined but not used [-Wunused-function] scene/2d/cpu_particles_2d.cpp:510:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function] scene/3d/cpu_particles.cpp:474:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function] scene/resources/default_theme/default_theme.cpp:123:20: warning: 'Ref<Shader> make_shader(const char*, const char*, const char*)' defined but not used [-Wunused-function] scene/resources/default_theme/default_theme.cpp:130:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function] ``` Had to split `core/io/zip_io.h` into header and .cpp file without 'static' keyword. Not fixed yet (static definition in header used in some files but not all): ``` modules/websocket/lws_helper.h:111:13: warning: 'void _lws_make_protocols(void*, int (*)(lws*, lws_callback_reasons, void*, void*, size_t), PoolVector<String>, _LWSRef**)' defined but not used [-Wunused-function] ``` Also fixed a couple other warnings missed in previous commits.