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
152
Issues
152
List
Boards
Labels
Service Desk
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fontconfig
fontconfig
Commits
c2fcde49
Commit
c2fcde49
authored
Sep 15, 2017
by
Behdad Esfahbod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[varfonts] Map from OpenType to Fontconfig weight values
Oops.
parent
9efe0689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/fcfreetype.c
src/fcfreetype.c
+4
-0
No files found.
src/fcfreetype.c
View file @
c2fcde49
...
@@ -1262,18 +1262,22 @@ FcFreeTypeQueryFace (const FT_Face face,
...
@@ -1262,18 +1262,22 @@ FcFreeTypeQueryFace (const FT_Face face,
{
{
case
FT_MAKE_TAG
(
'w'
,
'g'
,
'h'
,
't'
):
case
FT_MAKE_TAG
(
'w'
,
'g'
,
'h'
,
't'
):
elt
=
FC_WEIGHT
;
elt
=
FC_WEIGHT
;
min_value
=
FcWeightFromOpenType
(
min_value
);
max_value
=
FcWeightFromOpenType
(
max_value
);
variable
=
variable_weight
=
FcTrue
;
variable
=
variable_weight
=
FcTrue
;
weight
=
0
;
/* To stop looking for weight. */
weight
=
0
;
/* To stop looking for weight. */
break
;
break
;
case
FT_MAKE_TAG
(
'w'
,
'd'
,
't'
,
'h'
):
case
FT_MAKE_TAG
(
'w'
,
'd'
,
't'
,
'h'
):
elt
=
FC_WIDTH
;
elt
=
FC_WIDTH
;
/* Values in 'wdth' match Fontconfig FC_WIDTH_* scheme directly. */
variable
=
variable_width
=
FcTrue
;
variable
=
variable_width
=
FcTrue
;
width
=
0
;
/* To stop looking for width. */
width
=
0
;
/* To stop looking for width. */
break
;
break
;
case
FT_MAKE_TAG
(
'o'
,
'p'
,
's'
,
'z'
):
case
FT_MAKE_TAG
(
'o'
,
'p'
,
's'
,
'z'
):
elt
=
FC_SIZE
;
elt
=
FC_SIZE
;
/* Values in 'opsz' match Fontconfig FC_SIZE, both are in points. */
variable
=
variable_size
=
FcTrue
;
variable
=
variable_size
=
FcTrue
;
break
;
break
;
}
}
...
...
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