Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
64094f56
Commit
64094f56
authored
Dec 11, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* hebrew line order fixes. patch by Barak Ori (barakori at gmail dot com) (closes #369)
parent
127a398a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
THANKS
THANKS
+1
-0
modules/misc/freetype.c
modules/misc/freetype.c
+27
-3
No files found.
THANKS
View file @
64094f56
...
...
@@ -18,6 +18,7 @@ Arkadiusz Lipiec <A.Lipiec at elka.pw.edu.pl> - Polish translation
Arkadiusz Miskiewicz <misiek at pld.ORG.PL> - autoconf and Makefile patches
Arnaud Gomes-do-Vale <arnaud at carrosse.frmug.org> - autoconf patches
Arwed v. Merkatz <v.merkatz at gmx dot net> - Gamma correction for adjust filter
Barak Ori <barakori at gmail dot com> - Bidi fixes
Benjamin Mironer <bmironer at noos.fr> - Mac OS X fixes
Benoit Steiner <benny at via.ecp.fr> - MPEG system input, network input
Bill Eldridge <bill at rfa.org> - documentation
...
...
modules/misc/freetype.c
View file @
64094f56
...
...
@@ -526,10 +526,34 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
#if defined(HAVE_FRIBIDI)
{
uint32_t
*
p_fribidi_string
;
FriBidiCharType
base_dir
=
FRIBIDI_TYPE_ON
;
p_fribidi_string
=
malloc
(
(
i_string_length
+
1
)
*
sizeof
(
uint32_t
)
);
fribidi_log2vis
(
(
FriBidiChar
*
)
psz_unicode
,
i_string_length
,
&
base_dir
,
(
FriBidiChar
*
)
p_fribidi_string
,
0
,
0
,
0
);
/* Do bidi conversion line-by-line */
int
pos
=
0
;
while
(
pos
<
i_string_length
)
{
while
(
pos
<
i_string_length
)
{
i_char
=
psz_unicode
[
pos
];
if
(
i_char
!=
'\r'
&&
i_char
!=
'\n'
)
break
;
p_fribidi_string
[
pos
]
=
i_char
;
++
pos
;
}
int
start_pos
=
pos
;
while
(
pos
<
i_string_length
)
{
i_char
=
psz_unicode
[
pos
];
if
(
i_char
==
'\r'
||
i_char
==
'\n'
)
break
;
++
pos
;
}
if
(
pos
>
start_pos
)
{
FriBidiCharType
base_dir
=
FRIBIDI_TYPE_LTR
;
fribidi_log2vis
((
FriBidiChar
*
)
psz_unicode
+
start_pos
,
pos
-
start_pos
,
&
base_dir
,
(
FriBidiChar
*
)
p_fribidi_string
+
start_pos
,
0
,
0
,
0
);
}
}
free
(
psz_unicode_orig
);
psz_unicode
=
psz_unicode_orig
=
p_fribidi_string
;
p_fribidi_string
[
i_string_length
]
=
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