Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 83885 Details for
Bug 128760
Series patches for freetype 2.1.10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
freetype2-bitmap-foundry.patch
freetype2-bitmap-foundry.patch (text/plain), 1.81 KB, created by
Lin Hao-jie
on 2006-04-04 05:13:55 UTC
(
hide
)
Description:
freetype2-bitmap-foundry.patch
Filename:
MIME Type:
Creator:
Lin Hao-jie
Created:
2006-04-04 05:13:55 UTC
Size:
1.81 KB
patch
obsolete
>diff -ru freetype-2.1.7/src/pcf/pcfread.c freetype-2.1.7.new/src/pcf/pcfread.c >--- freetype-2.1.7/src/pcf/pcfread.c 2004-03-15 22:47:12.761073165 +0100 >+++ freetype-2.1.7.new/src/pcf/pcfread.c 2004-03-15 23:01:16.946185012 +0100 >@@ -1046,12 +1046,34 @@ > prop = pcf_find_property( face, "FAMILY_NAME" ); > if ( prop && prop->isString ) > { >- int l = ft_strlen( prop->value.atom ) + 1; >- >- >- if ( FT_NEW_ARRAY( root->family_name, l ) ) >- goto Exit; >- ft_strcpy( root->family_name, prop->value.atom ); >+ int l = ft_strlen( prop->value.atom ) + 1; >+ int wide = 0; >+ PCF_Property foundry_prop = pcf_find_property( face, "FOUNDRY" ); >+ PCF_Property point_size_prop = pcf_find_property( face, "POINT_SIZE" ); >+ PCF_Property average_width_prop = pcf_find_property( face, "AVERAGE_WIDTH" ); >+ if ( point_size_prop != NULL && average_width_prop != NULL) { >+ if ( average_width_prop->value.integer >= point_size_prop->value.integer ) { >+ /* This font is at least square shaped or even wider */ >+ wide = 1; >+ l += ft_strlen( " Wide"); >+ } >+ } >+ if ( foundry_prop != NULL && foundry_prop->isString) { >+ l += ft_strlen( foundry_prop->value.atom ) + 1; >+ if ( FT_NEW_ARRAY( root->family_name, l ) ) >+ goto Exit; >+ ft_strcpy( root->family_name, foundry_prop->value.atom ); >+ strcat( root->family_name, " "); >+ strcat( root->family_name, prop->value.atom ); >+ } >+ else { >+ if ( FT_NEW_ARRAY( root->family_name, l ) ) >+ goto Exit; >+ ft_strcpy( root->family_name, prop->value.atom ); >+ } >+ if ( wide != 0) { >+ strcat( root->family_name, " Wide"); >+ } > } > else > root->family_name = NULL;
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 128760
:
83876
|
83877
|
83878
|
83879
|
83880
|
83881
|
83883
| 83885 |
83955
|
83956
|
83957
|
83958
|
83959
|
83960