Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9be4f7e0
Commit
9be4f7e0
authored
Jan 05, 2015
by
Salah-Eddin Shaban
Committed by
Jean-Baptiste Kempf
Jan 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: fix extra squares in Arabic subtitles (fixes #6152 #8117)
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
8c387fdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+6
-0
No files found.
modules/text_renderer/freetype.c
View file @
9be4f7e0
...
...
@@ -1367,6 +1367,12 @@ static int ProcessLines( filter_t *p_filter,
uni_char_t
character
=
psz_text
[
i_index
];
int
i_glyph_index
=
FT_Get_Char_Index
(
p_current_face
,
character
);
/* If the missing glyph is U+FEFF (ZERO WIDTH NO-BREAK SPACE) */
/* we can safely ignore it. Otherwise extra squares show up */
/* in Arabic text. */
if
(
i_glyph_index
==
0
&&
character
==
0xFEFF
)
goto
next
;
/* Get kerning vector */
FT_Vector
kerning
=
{
.
x
=
0
,
.
y
=
0
};
if
(
FT_HAS_KERNING
(
p_current_face
)
&&
i_glyph_last
!=
0
&&
i_glyph_index
!=
0
)
...
...
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