Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
90b73bf5
Commit
90b73bf5
authored
Feb 26, 2014
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fontconfig: use double as FC_SIZE
Also set size only if it's > 0 (assume 0 is non-usable font-size).
parent
820f8f2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
modules/text_renderer/platform_fonts.c
modules/text_renderer/platform_fonts.c
+2
-7
No files found.
modules/text_renderer/platform_fonts.c
View file @
90b73bf5
...
...
@@ -129,14 +129,9 @@ char* FontConfig_Select( filter_t *p_filter, const char* family,
FcPatternAddBool
(
pat
,
FC_OUTLINE
,
FcTrue
);
FcPatternAddInteger
(
pat
,
FC_SLANT
,
b_italic
?
FC_SLANT_ITALIC
:
FC_SLANT_ROMAN
);
FcPatternAddInteger
(
pat
,
FC_WEIGHT
,
b_bold
?
FC_WEIGHT_EXTRABOLD
:
FC_WEIGHT_NORMAL
);
if
(
i_size
!=
-
1
)
if
(
i_size
>
0
)
{
char
*
psz_fontsize
;
if
(
asprintf
(
&
psz_fontsize
,
"%d"
,
i_size
)
!=
-
1
)
{
FcPatternAddString
(
pat
,
FC_SIZE
,
(
const
FcChar8
*
)
psz_fontsize
);
free
(
psz_fontsize
);
}
FcPatternAddDouble
(
pat
,
FC_SIZE
,
(
double
)
i_size
);
}
/* */
...
...
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