Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
fontconfig
fontconfig
Commits
0f9bbbcf
Commit
0f9bbbcf
authored
Sep 13, 2017
by
Behdad Esfahbod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[varfonts] Query variable font in FcFreeTypeQueryAll()
Returns varfont pattern at the end.
parent
585f0871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/fcfreetype.c
src/fcfreetype.c
+4
-2
No files found.
src/fcfreetype.c
View file @
0f9bbbcf
...
...
@@ -2092,11 +2092,13 @@ FcFreeTypeQueryAll(const FcChar8 *file,
if
(
!
set
||
!
FcFontSetAdd
(
set
,
pat
))
FcPatternDestroy
(
pat
);
}
else
else
if
(
instance_num
!=
0x8000
)
err
=
1
;
if
(
instance_num
<
num_instances
&&
!
set_instance_num
)
if
(
!
set_instance_num
&&
instance_num
<
num_instances
)
instance_num
++
;
else
if
(
!
set_instance_num
&&
instance_num
==
num_instances
)
instance_num
=
0x8000
;
/* variable font */
else
{
face_num
++
;
...
...
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