Date: Tue, 30 Jul 2002 10:52:48 +0800 (CST) From: Statue <statue@freebsd.sinica.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/41141: Update port: chinese/ttfm Message-ID: <20020730025248.E9CAF886@freebsd.sinica.edu.tw>
next in thread | raw e-mail | index | archive | help
>Number: 41141 >Category: ports >Synopsis: Update port: chinese/ttfm >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Jul 29 20:00:11 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Statue >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.6-STABLE FreeBSD 4.6-STABLE #1: Tue Jul 23 15:34:20 CST 2002 ycheng@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386 >Description: update files/patch-ttfinfo.c >How-To-Repeat: >Fix: diff -ruN ttfm.orig/files/patch-ttfinfo.c ttfm/files/patch-ttfinfo.c --- ttfm.orig/files/patch-ttfinfo.c Tue Jul 30 10:50:06 2002 +++ ttfm/files/patch-ttfinfo.c Tue Jul 30 10:48:53 2002 @@ -1,5 +1,5 @@ ---- ttfinfo.c.orig Fri Apr 19 18:30:44 2002 -+++ ttfinfo.c Fri Apr 19 18:31:02 2002 +--- ttfinfo.c.orig Sun Dec 17 02:56:41 2000 ++++ ttfinfo.c Tue Jul 30 10:48:21 2002 @@ -112,6 +112,7 @@ static void usage (const char *name); static const char *get_foundry (const TT_Char orig_code[4]); @@ -41,7 +41,7 @@ */ for (k = 0; k < 2; k++) { -@@ -1276,6 +1280,97 @@ +@@ -1276,6 +1280,99 @@ } } } @@ -120,6 +120,7 @@ + TT_UShort string_len; + static char name_buffer[513]; + int name_len; ++ int english=1; + + TT_Get_Name_String (face, i, &string, &string_len); + string_len = string_len < 512 ? string_len : 512; @@ -129,11 +130,12 @@ + /* drop the NULL part, dont't use j+=2 to avoid + endian problem. */ + if (string[j] != '\0'){ ++ if ((string[j] & 0xff) > 0x7f) english=0; + name_buffer[name_len++] = string[j]; + } + } + name_buffer[name_len] = '\0'; -+ return name_buffer; ++ if (english) return name_buffer; + } + } } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020730025248.E9CAF886>