aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/dynamic_font_stb.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Perfect FreeType-based outlines for DynamicFontsRuslan Mustakov2018-05-081-10/+12
| | | | | | | | | | | | | | | | | | | | | | | - 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 missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* fix: Updates dynamic_font_stb to use get_extension, and memnewD. Fleury2017-11-121-3/+2
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Add closest_power_of_2 func and implement mix_rate/latency on OS XMarcelo Fernandez2017-08-171-1/+1
|
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-2/+2
|
* Move other lone thirdparty files to thirdparty/miscRémi Verschelde2017-04-281-1/+0
| | | | | Also move Box2D ConvexDecomposition contrib code to thirdparty/b2d_convexdecomp.
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-181/+153
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-051-0/+28
|
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-131-4/+4
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* Remove use of _SCS from ADD_METHODHein-Pieter van Braam2017-02-131-2/+2
| | | | This saves typing and is a step towards fixing #56
* Style: Fix whole-line commented codeRémi Verschelde2017-01-141-1/+1
| | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* Memory pool vectors (DVector) have been enormously simplified in code, and ↵Juan Linietsky2017-01-071-6/+6
| | | | renamed to PoolVector
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-4/+4
| | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* Begining of GLES3 renderer:Juan Linietsky2016-10-031-1/+1
| | | | | | | | -Most 2D drawing is implemented -Missing shaders -Missing all 3D -Editor needs to be set on update always to be used, otherwise it does not refresh -Large parts of editor not working
* Improved binding system (ObjectTypeDB::bind_method) to be friendlier to ↵Juan Linietsky2016-06-221-2/+2
| | | | | | statically typed languages, should help in the Mono integration. Disabled by default.
* fix stb font property namessanikoyes2016-05-311-2/+2
|
* Finalized DynamicFont implementationJuan Linietsky2016-05-291-0/+527
-DynamicFont uses Freetype by default -Editor fonts are now scalable thanks to this -Cleaned up documentation browser and added fonts for this