summaryrefslogtreecommitdiffstats
path: root/editor/editor_fonts.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #62860 from Calinou/editor-log-bold-italic-mono-fontsRémi Verschelde2022-10-041-0/+22
|\ | | | | | | Define bold, italics and mono fonts in editor log for `print_rich()`
| * Define bold, italics and mono fonts in editor log for `print_rich()`Hugo Locurcio2022-07-091-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | This is also used by the number indicator for message grouping, as it uses a bold font. Mono font does not actually turn proportional fonts into monospace. Instead, it's a more faint version of the regular font, intended to emulate the look of the "faint" ANSI escape code (and make `[code]` distinguishable from regular text). The custom code font will be used to generate the bold/italic/mono variants if specified in the Editor Settings.
* | Do not use horizontal hinting for the editor monospace font.bruvzg2022-09-141-2/+8
| |
* | Add font LCD sub-pixel anti-aliasing support.bruvzg2022-08-231-41/+41
| |
* | Rename OSX to macOS and iPhoneOS to iOS.bruvzg2022-07-211-1/+1
|/
* Fix regressions from Font refactorbruvzg2022-07-071-22/+39
| | | | | 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.
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-321/+203
|
* Improve the VisualShader/VisualScript editor UIHendrik Brucker2022-04-301-2/+78
|
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-1/+1
|
* [Help] Add simulated slanted font support to the editor help.bruvzg2022-03-221-1/+55
|
* Generate simulated bold font from the custom font if no custom bold font set.bruvzg2022-03-141-3/+7
|
* Add simulated bold variant to the editor CJK fonts.bruvzg2022-03-131-2/+9
|
* Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde2022-03-111-3/+1
| | | | | | | | `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>
* Add sub-pixel glyph positioning support.bruvzg2022-02-121-32/+35
|
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-2/+2
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-40/+40
| | | | | | | | 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.
* Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-40/+40
|
* [Editor] Disable contextual alternates (coding ligatures) outside of code ↵bruvzg2022-01-231-0/+3
| | | | editor.
* Merge pull request #36198 from Calinou/code-font-jetbrains-monoRémi Verschelde2022-01-201-1/+1
|\
| * Use JetBrains Mono as the editor's default code fontHugo Locurcio2022-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #56376 from pycbouh/theme-tombe-les-theme-propertiesRémi Verschelde2022-01-061-2/+2
|\ \ | |/ |/|
| * Correctly use fallback Theme values as last resortYuri Sizov2021-12-311-2/+2
| |
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-3/+3
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Ignore empty Font resources as theme override.bruvzg2021-10-251-9/+6
| | | | | Add range hint to font_size properties. Remove excessive `base_size` Font property.
* Makes FontData importable resource.bruvzg2021-08-271-260/+140
| | | | | | | 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.
* [Editor Fonts] Add Noto Sans Bold font variant for supported languages.bruvzg2021-07-191-38/+134
|
* Add header theme type variations to labelskobewi2021-07-131-1/+13
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-22/+22
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-1/+1
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Use bold fonts in editorreduz2021-06-021-1/+6
| | | | | | | * Labels are now bold * Categories in trees are bold * Main editor buttons are bold * Fixed section folding arrows in inspector
* 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/+17
|
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-103/+161
| | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* Change how default fonts are created, fixes #39235Juan Linietsky2020-07-031-1/+1
| | | | Also fixes file dialog icons.
* Improve shortcut formatting in docsYuri Sizov2020-04-101-0/+2
|
* Fix default editor font.bruvzg2020-03-271-1/+1
| | | | Fix popup_centered_clamped definition typo.
* Add rotation widget to 3D viewportjfons2020-03-081-0/+4
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | 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.
* Fix validating editor bold fontvolzhs2019-10-211-1/+1
|
* Fixed warnings text using custom font and color setting.Hanif Bin Ariffin2019-10-041-0/+1
| | | | | Fixes #31917 Added missing font and color override.
* Add an "Auto" editor font hinting setting to match OS font renderingHugo Locurcio2019-08-141-1/+25
| | | | | | 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.
* Simplify editor settings related to font hinting and antialiasingHugo Locurcio2019-07-281-8/+6
| | | | | | | | 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.
* Add support for bold fonts in the editor helpHugo Locurcio2019-06-151-7/+5
| | | | | This also makes it possible to use the strikethrough tag (`[s]`) in the editor help.
* Fix help source font setting and related cleanupRémi Verschelde2019-06-141-6/+6
| | | | | | | | | | | 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.
* Merge pull request #28107 from Amssat221/issue28105Rémi Verschelde2019-05-281-1/+1
|\ | | | | Set range (10-50) to help source font size
| * Set range and change EDITOR_DEF to EDITOR_GETGuillermo2019-04-301-1/+1
| | | | | | | | | | | | | | | | Fix indentation Fix Indentation! Remove 14
* | Expression node for visual shadersChaosus2019-05-211-0/+3
|/
* Editor source status font size, fixes #25039Melvin Winstroem-Moeller2019-01-181-1/+1
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!