diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2007-06-09 11:59:41 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2007-06-09 11:59:41 +0000 |
commit | 572f5ae6c54b91e298ce94b7ce31a402891abcca (patch) | |
tree | 960062a17d6a12153ce8023639b75d8a08a9e632 /graphics/tgif/files/patch-font.c | |
parent | gzip Japanese manual like default (English) manual by USE_IMAKE. (diff) |
- Merge graphics/tgif-nls and graphics/tgif into a single port
graphics/tgif. The two ports were almost identical except for NLS
support.
The graphics/tgif now supports NLS by default and WITHOUT_NLS knob to
disable it.
- Add WITH_A4SIZE knob to set A4 as the default paper size.
- Add a workaround for incorrect width calculation of wide characters.
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=193095
Diffstat (limited to 'graphics/tgif/files/patch-font.c')
-rw-r--r-- | graphics/tgif/files/patch-font.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/graphics/tgif/files/patch-font.c b/graphics/tgif/files/patch-font.c new file mode 100644 index 000000000000..8ada18a9de58 --- /dev/null +++ b/graphics/tgif/files/patch-font.c @@ -0,0 +1,41 @@ +--- font.c.orig Sat Jun 9 20:34:29 2007 ++++ font.c Sat Jun 9 20:36:15 2007 +@@ -869,10 +869,10 @@ + (nOdd || ((*psz)&0x80) == nDoubleByte); + psz++, nSubStrIndex++) { + if (nOdd) { +- gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz); ++ gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz) & 0x7f; + nDoubleByteIndex++; + } else { +- gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz); ++ gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz) & 0x7f; + } + nOdd = !nOdd; + } +@@ -932,10 +932,10 @@ + (nOdd || ((*psz)&0x80) == nDoubleByte); + psz++, nSubStrIndex++) { + if (nOdd) { +- gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz); ++ gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz) & 0x7f; + nDoubleByteIndex++; + } else { +- gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz); ++ gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz) & 0x7f; + } + nOdd = !nOdd; + } +@@ -981,10 +981,10 @@ + (nOdd || ((*psz)&0x80) == nDoubleByte); + psz++, nSubStrIndex++) { + if (nOdd) { +- gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz); ++ gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz) & 0x7f; + nDoubleByteIndex++; + } else { +- gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz); ++ gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz) & 0x7f; + } + nOdd = !nOdd; + } |