Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
7460bc36
Unverified
Commit
7460bc36
authored
Jun 03, 2020
by
Rémi Verschelde
Committed by
GitHub
Jun 03, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39130 from Calinou/dynamicfont-disable-outline-antialiasing
Disable antialiasing on the DynamicFont outline as well when requested
parents
3a59c24b
2919fc73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
DynamicFontData.xml
doc/classes/DynamicFontData.xml
+1
-1
dynamic_font.cpp
scene/resources/dynamic_font.cpp
+1
-1
No files found.
doc/classes/DynamicFontData.xml
View file @
7460bc36
...
...
@@ -12,7 +12,7 @@
</methods>
<members>
<member
name=
"antialiased"
type=
"bool"
setter=
"set_antialiased"
getter=
"is_antialiased"
default=
"true"
>
If [code]true[/code], the font is rendered with anti-aliasing.
If [code]true[/code], the font is rendered with anti-aliasing.
This property applies both to the main font and its outline (if it has one).
</member>
<member
name=
"font_path"
type=
"String"
setter=
"set_font_path"
getter=
"get_font_path"
default=
""""
>
The path to the vector font file.
...
...
scene/resources/dynamic_font.cpp
View file @
7460bc36
...
...
@@ -567,7 +567,7 @@ DynamicFontAtSize::Character DynamicFontAtSize::_make_outline_char(CharType p_ch
if
(
FT_Glyph_Stroke
(
&
glyph
,
stroker
,
1
)
!=
0
)
{
goto
cleanup_glyph
;
}
if
(
FT_Glyph_To_Bitmap
(
&
glyph
,
FT_RENDER_MODE_NORMAL
,
nullptr
,
1
)
!=
0
)
{
if
(
FT_Glyph_To_Bitmap
(
&
glyph
,
font
->
antialiased
?
FT_RENDER_MODE_NORMAL
:
FT_RENDER_MODE_MONO
,
nullptr
,
1
)
!=
0
)
{
goto
cleanup_glyph
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment