Age | Commit message (Collapse) | Author |
|
Ceil char width within Label instead of Font
|
|
|
|
|
|
|
|
Fix missing registration for new param of TextEdit::cursor_set_line.
|
|
fix get_char_width for non-latin characters
|
|
-Changed UI resizing code, gained huge amount of speed.
-Reorganized timer sync to clean up behavior (sorry forgot commit this before)
-
|
|
This caused Mono glue gen to fail and other bugs to appear
(such as in Visual Script)
|
|
|
|
|
|
Some classes use Font::get_char_size directly and not only for
autowrapping. RichTextLabel is one such example. So this commit
reverts aa8561d (PR #17504) and instead ceils character width within
Label. This makes sure Label autowraps correctly while not affecting
other Font clients.
Fixes #18835.
|
|
Fixed some warnings found with Cppcheck
|
|
|
|
|
|
Not considering a paste operation as a complex one ends up
adding an unneeded extra step when pasting over a selection.
This fixes issue #18325
|
|
|
|
Perfect FreeType-based outlines for DynamicFonts
|
|
Use exact positioning for the ItemList::get_tooltip method.
|
|
Fixes #15787.
The issue occurred when two (or more) separate DynamicFont instances
used the same DynamicFontAtSize instance due to having equal
properties. The first instance updated its data_at_size and emitted
"changed" signal, but the second did not because it considered the
data_at_size to be up to date, even though it has just been updated.
|
|
- Implement outlines based on FreeType Stroker API. This allows
artifact-free results, similar to what you will see in Web or any text
editing tools. Outline is a part of DynamicFont rather than Label,
because outlines have to be baked into the font's atlas. Font has a
default outline_color and a Label can specify font_outline_modulator
that will be multiplied with the Font's color to get the final result.
- draw_char now has to be called twice to fully render a text - first
with p_outline == true for each character and then with
p_outline == false for each character.
- Number of draw-calls is reduced from 5 to 2 per outlined character.
- Overall cleanup of DynamicFont code, extracted duplicated code pieces
into separate methods.
- The change is backward-compatible - Labels still have outline
properties that work exactly as they worked before.
Closes #16279.
|
|
Add default paramater value for OptionButton::add_icon_item
|
|
|
|
Implements "Batch Rename" editor tool.
|
|
Allow configuration of which mouse buttons the BaseButton responds to
|
|
Fix StyleBox ignoring region rect and ProgressBar using center size
|
|
Add additional macos shortcuts for going to start/end of line
|
|
RichTextLabel, doc: Added new method to get total content height
|
|
Implement font shadows for RichTextLabel
|
|
Support of CMD+Backspace and CMD+Delete on MacOS.
|
|
This solves #17931 and makes the script editor consistent with other text editors(Sublime, Gedit, Vim) in displaying the position rather than the raw number of characters.
|
|
API hash fixes
|
|
Editing the `Text` property through the editor causes a wrong
placement of the placeholder, as it calls `LineEdit::clear_internal`,
which was wrongly reseting the cached placeholder width.
Fix #18184.
|
|
Created a new function named get_element in GridContainer. This funct…
|
|
fix clang6 assignment error
|
|
Fix GridContainer's children visibility breaking the layout
|
|
Adds support for CMD+Left and CMD+Right on MacOS
|
|
Tweak the property hint ranges of caret blink and line length guideline
|
|
|
|
|
|
This allows for more precise adjustments.
|
|
Adds support for CMD+Backspace, to delete all text
before the cursor in the line and CMD+Delete to delete
all text after the cursor in line following the typical
MacOS text editing workflow
Fixes: #18059
|
|
|
|
CMD+Left and CMD+Right are hotkeys used on MacOS for
moving cursor to start and end of the text, respectively.
They are now supported, alongside ALT+key.
Fixes: #17631
|
|
|
|
|
|
|
|
Add popup_closed signal for ColorPickerButton
|
|
|
|
ItemList needs to check against the number of items available when the user moves the selection via "ui_right" action.
|
|
Fixes #17688
|