Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 83872 Details for
Bug 128755
cairo embeddedbitmap patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cairo embeddedbitmap path
cairo-1.0.2-embedded-bitmaps.patch (text/plain), 1.40 KB, created by
Lin Hao-jie
on 2006-04-04 04:12:07 UTC
(
hide
)
Description:
cairo embeddedbitmap path
Filename:
MIME Type:
Creator:
Lin Hao-jie
Created:
2006-04-04 04:12:07 UTC
Size:
1.40 KB
patch
obsolete
>--- cairo-1.0.2/src/cairo-ft-font.c.orig 2005-12-20 10:56:08.000000000 +1000 >+++ cairo-1.0.2/src/cairo-ft-font.c 2005-12-20 11:01:03.000000000 +1000 >@@ -1328,7 +1328,9 @@ > static int > _get_pattern_load_flags (FcPattern *pattern) > { >- FcBool antialias, vertical_layout, hinting, autohint; >+ FcBool antialias, vertical_layout, hinting, autohint, bitmap; >+ FcBool transform; >+ FcMatrix *font_matrix; > int rgba; > #ifdef FC_HINT_STYLE > int hintstyle; >@@ -1336,14 +1338,30 @@ > int load_flags = 0; > int target_flags = 0; > >+#ifndef FC_EMBEDDED_BITMAP >+#define FC_EMBEDDED_BITMAP "embeddedbitmap" >+#endif >+ >+ if (FcPatternGetMatrix (pattern, >+ FC_MATRIX, 0, &font_matrix) != FcResultMatch) >+ font_matrix = NULL; >+ >+ transform = (font_matrix && (font_matrix->xx != 1 || font_matrix->xy != 0 || >+ font_matrix->yx != 0 || font_matrix->yy != 1)); >+ >+ /* Check whether to use embedded bitmap forcely */ >+ if (FcPatternGetBool (pattern, >+ FC_EMBEDDED_BITMAP, 0, &bitmap) != FcResultMatch) >+ bitmap = FcFalse; >+ > /* disable antialiasing if requested */ > if (FcPatternGetBool (pattern, > FC_ANTIALIAS, 0, &antialias) != FcResultMatch) > antialias = FcTrue; > >- if (antialias) >+ if ((!bitmap && antialias) || transform) > load_flags |= FT_LOAD_NO_BITMAP; >- else >+ else if (!antialias) > load_flags |= FT_LOAD_MONOCHROME; > > /* disable hinting if requested */ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 128755
: 83872