summaryrefslogtreecommitdiffstats
path: root/scene/resources/text_line.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* [Text Overrun] Add option to set custom ellipsis character, add support for ↵bruvzg2023-12-041-0/+23
| | | | system font fallback.
* Do not apply extra spacing twice.bruvzg2023-10-091-6/+0
|
* Mark dirty flags when shaped texts are invalidatedMinusKube2023-01-281-0/+5
|
* 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".
* [RTL/TextServer] Add baseline inline alignment mode for objects and RTL tables.bruvzg2022-12-151-6/+6
|
* Code simplificationsMarkus Sauermann2022-11-071-5/+1
| | | | | | | | | | | | | | | | | CanvasItemEditor: - p_result == ADD_MOVE is always true in this switch-clause - both parts of the if-else-clause do the same thing and simplified an affine_inverse call ControlEditorToolbar: - private function ControlEditorToolbar::_anchor_to_position is used nowhere. Looks like copy and paste from CanvasItemEditor::_anchor_to_position ScrollContainer: - screen_is_touchscreen is always true, because otherwise the function already returned TextLine: - both parts of the if-else-clause do the same thing and simplified return statement
* Fix `TextLine` and `TextParagraph` `get_*_object_rect` methods not ↵bruvzg2022-10-261-1/+42
| | | | accounting for alignment and drop cap.
* Fix various typos not caught by codespellluz paz2022-07-211-1/+1
| | | Revert upstream `core/input/gamecontrollerdb.txt`. Upstream fix: https://github.com/gabomdq/SDL_GameControllerDB/pull/600
* Use BitField hint for the TextServer enums. Add missing parts for BitField ↵bruvzg2022-07-151-13/+13
| | | | support to the GDextension API.
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-20/+22
|
* Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg2022-06-161-16/+10
| | | | TextServer.
* Capitalize/fix some property enum hintsFireForge2022-05-121-1/+1
|
* Fix center aligned text clipping.bruvzg2022-04-041-8/+24
|
* Unify TextServer built-in module and GDExtension code.bruvzg2022-03-171-1/+1
|
* [TextServer] Add function to change font, font size, and OpenType features ↵bruvzg2022-02-021-3/+3
| | | | without invalidating line break points, justification points, or recreating shaped text buffer.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-27/+27
|
* Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg2021-10-011-13/+5
| | | | interface.
* Makes FontData importable resource.bruvzg2021-08-271-4/+4
| | | | | | | 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 #51178 from Geometror/layout-options-textline-textparagraphRémi Verschelde2021-08-111-2/+55
|\ | | | | Various text layout improvements (TextLine, TextParagraph, Label, TextServer)
| * Various text layout improvements (TextLine, TextParagraph, Label, TextServer)Hendrik Brucker2021-08-111-2/+55
| |
* | [Text Server] Improve object (image/table) inline alignment.bruvzg2021-08-081-4/+4
|/
* Tweak dozens of editor property hints for consistencyHugo Locurcio2021-05-251-1/+1
| | | | | | - Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
* Fix `TextLine`/`TextParagraph` crash when `add_string` / `set_dropcap` is ↵bruvzg2021-02-151-0/+1
| | | | called null font reference.
* 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 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-1/+1
|
* [Complex Text Layouts] Adds missing Font::SPACING_* to the Label, LineEdit, ↵bruvzg2020-12-061-7/+17
| | | | | | TextEdit, TextLine and TextParagraph. Fixes oversized editor control height (default editor spacing is negative) and control size changing when text is set.
* [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-261-0/+359
use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.