Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fontconfig
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Ben Wagner
fontconfig
Commits
8c44becd
Commit
8c44becd
authored
Jul 29, 2019
by
Akira TAGOH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing the check of prep table in some fonts
parent
80047ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
src/fcfreetype.c
src/fcfreetype.c
+15
-8
No files found.
src/fcfreetype.c
View file @
8c44becd
...
...
@@ -2608,6 +2608,20 @@ compareulong (const void *a, const void *b)
return
*
ua
-
*
ub
;
}
static
FcBool
FindTable
(
FT_Face
face
,
FT_ULong
tabletag
)
{
FT_Stream
stream
=
face
->
stream
;
FT_Error
error
;
if
(
!
stream
)
return
FcFalse
;
if
((
error
=
ftglue_face_goto_table
(
face
,
tabletag
,
stream
)
))
return
FcFalse
;
return
FcTrue
;
}
static
int
GetScriptTags
(
FT_Face
face
,
FT_ULong
tabletag
,
FT_ULong
**
stags
)
...
...
@@ -2746,14 +2760,7 @@ bail:
static
FcBool
FcFontHasHint
(
FT_Face
face
)
{
FT_ULong
*
prep
=
NULL
;
FT_UShort
prep_count
=
0
;
prep_count
=
GetScriptTags
(
face
,
TTAG_prep
,
&
prep
);
free
(
prep
);
return
prep_count
>
0
;
return
FindTable
(
face
,
TTAG_prep
);
}
...
...
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