Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xorg
lib
libXft
Commits
cb80b449
Commit
cb80b449
authored
Nov 22, 2008
by
Stefan Dirsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added fake bold support (#1579, Novell #38202/223682).
parent
60bb5229
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/xftfreetype.c
src/xftfreetype.c
+16
-1
No files found.
src/xftfreetype.c
View file @
cb80b449
...
...
@@ -385,6 +385,7 @@ XftFontInfoFill (Display *dpy, _Xconst FcPattern *pattern, XftFontInfo *fi)
FcChar32
hash
,
*
hashp
;
FT_Face
face
;
int
nhash
;
FcBool
bitmap
;
if
(
!
info
)
return
FcFalse
;
...
...
@@ -512,8 +513,22 @@ XftFontInfoFill (Display *dpy, _Xconst FcPattern *pattern, XftFontInfo *fi)
*/
fi
->
load_flags
=
FT_LOAD_DEFAULT
;
#ifndef XFT_EMBEDDED_BITMAP
#define XFT_EMBEDDED_BITMAP "embeddedbitmap"
#endif
switch
(
FcPatternGetBool
(
pattern
,
XFT_EMBEDDED_BITMAP
,
0
,
&
bitmap
))
{
case
FcResultNoMatch
:
bitmap
=
FcFalse
;
break
;
case
FcResultMatch
:
break
;
default:
goto
bail1
;
}
/* disable bitmaps when anti-aliasing or transforming glyphs */
if
(
fi
->
antialias
||
fi
->
transform
)
if
(
(
!
bitmap
&&
fi
->
antialias
)
||
fi
->
transform
)
fi
->
load_flags
|=
FT_LOAD_NO_BITMAP
;
/* disable hinting if requested */
...
...
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