summaryrefslogtreecommitdiff
path: root/packages/opie-ttf-support
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2006-01-19 20:01:55 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-19 20:01:55 +0000
commit23d83aae581d459ce51237b5cdcfc8330bb3529d (patch)
tree81c1f327ce4a0ce59ef19e4e870e607058d64dc3 /packages/opie-ttf-support
parent15517af1d6ff6a0c3e4b66c4eade1c81e3199403 (diff)
parent909321269e98db8a265ef4787e7a002cf4569b3c (diff)
merge of 827f4059e04553066f724435440d24ddd9d922cb
and 9b2d4fdceb2f6fd916a463de425a0480831dd0af
Diffstat (limited to 'packages/opie-ttf-support')
-rw-r--r--packages/opie-ttf-support/files/update-qtttffontdir.c37
-rw-r--r--packages/opie-ttf-support/opie-ttf-support_1.1.bb (renamed from packages/opie-ttf-support/opie-ttf-support_1.0.0.bb)1
2 files changed, 35 insertions, 3 deletions
diff --git a/packages/opie-ttf-support/files/update-qtttffontdir.c b/packages/opie-ttf-support/files/update-qtttffontdir.c
index 4c2b0c6eff..fa45e38a8b 100644
--- a/packages/opie-ttf-support/files/update-qtttffontdir.c
+++ b/packages/opie-ttf-support/files/update-qtttffontdir.c
@@ -46,6 +46,8 @@ int main(int argc, char* argv[])
chdir(argv[1]);
if((katalog = opendir(".")))
{
+ int found_fixed = 0;
+
while((plik = readdir(katalog)))
{
if(!strstr(plik->d_name, ".ttf"))
@@ -62,7 +64,38 @@ int main(int argc, char* argv[])
char* ptr;
for(ptr = strchr(face->family_name,' '); (ptr = strchr(ptr, ' ')); ) *ptr = '_';
-
+
+ if(
+ face->face_flags & FT_FACE_FLAG_FIXED_WIDTH &&
+ !found_fixed &&
+ !(face->style_flags & FT_STYLE_FLAG_ITALIC) &&
+ !(face->style_flags & FT_STYLE_FLAG_BOLD)
+ )
+ {
+ found_fixed = 1;
+ printf("fixed %s/%s FT", argv[1], plik->d_name);
+
+ if(face->style_flags & FT_STYLE_FLAG_ITALIC)
+ {
+ printf(" y");
+ }
+ else
+ {
+ printf(" n");
+ }
+
+ if(face->style_flags & FT_STYLE_FLAG_BOLD)
+ {
+ printf(" 75");
+ }
+ else
+ {
+ printf(" 50");
+ }
+
+ printf(" 60 su \n");
+ }
+
printf("%s %s/%s FT", face->family_name, argv[1], plik->d_name);
if(face->style_flags & FT_STYLE_FLAG_ITALIC)
@@ -82,7 +115,7 @@ int main(int argc, char* argv[])
{
printf(" 50");
}
-
+
printf(" 60 su \n");
FT_Done_Face(face);
diff --git a/packages/opie-ttf-support/opie-ttf-support_1.0.0.bb b/packages/opie-ttf-support/opie-ttf-support_1.1.bb
index fa20f212b7..f012af4a72 100644
--- a/packages/opie-ttf-support/opie-ttf-support_1.0.0.bb
+++ b/packages/opie-ttf-support/opie-ttf-support_1.1.bb
@@ -1,7 +1,6 @@
DESCRIPTION = "Meta-package for Opie TTF support"
DEPENDS = "freetype"
SECTION = "opie/fonts"
-PR = "r5"
SRC_URI = "file://update-qtttffontdir.c"
S = "${WORKDIR}"