From 57fa5c74bbca3231416ff7a2e5e3f9ad01368e14 Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Mon, 29 Mar 2004 15:45:53 +0000 Subject: merge with XORG-RELEASE-1-TM --- fonttosfnt.man | 8 +++++--- read.c | 26 +++++++++++++++----------- write.c | 2 +- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/fonttosfnt.man b/fonttosfnt.man index 3a189cf..5bc5ef2 100644 --- a/fonttosfnt.man +++ b/fonttosfnt.man @@ -69,8 +69,10 @@ Some of the font-level values, notably sub- and superscript positions, are dummy values. .SH SEE ALSO X(7), Xserver(1), Xft(3x). -.I Fonts in XFree86. +.I Fonts in X. .SH AUTHOR +The version of .B Fonttosfnt -was written by Juliusz Chroboczek for the XFree86 -project. +included in this X.Org Foundation release +was originally written by Juliusz Chroboczek +for the XFree86 project. diff --git a/read.c b/read.c index dd5bcef..9e0c666 100644 --- a/read.c +++ b/read.c @@ -1,3 +1,4 @@ +/* $XdotOrg: xc/programs/fonttosfnt/read.c,v 1.1.4.1.4.1 2004/03/04 17:48:48 eich Exp $ */ /* Copyright (c) 2002 by Juliusz Chroboczek @@ -19,9 +20,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -/* $XdotOrg: xc/programs/fonttosfnt/read.c,v 1.1.4.1.4.2 2004/03/04 19:45:27 kaleb Exp $ */ /* $XFree86: xc/programs/fonttosfnt/read.c,v 1.5 2003/12/19 02:05:39 dawes Exp $ */ - #include #include @@ -117,14 +116,17 @@ readFile(char *filename, FontPtr font) unique; it only needs to be unique among all installed fonts on a Windows system. We don't bother getting it quite right. */ if(face->num_fixed_sizes <= 0) - unique_name = sprintf_reliable("%s XFree86 bitmap", full_name); + unique_name = sprintf_reliable("%s "XVENDORNAMESHORT" bitmap" + , full_name); else if(face->available_sizes[0].width == face->available_sizes[0].height) - unique_name = sprintf_reliable("%s XFree86 bitmap size %d", + unique_name = sprintf_reliable("%s "XVENDORNAMESHORT + " bitmap size %d", full_name, face->available_sizes[0].height); else - unique_name = sprintf_reliable("%s XFree86 bitmap size %dx%d", + unique_name = sprintf_reliable("%s "XVENDORNAMESHORT + " bitmap size %dx%d", full_name, face->available_sizes[0].width, face->available_sizes[0].height); @@ -178,15 +180,17 @@ readFile(char *filename, FontPtr font) } font->names[i].nid = 10; - font->names[i].size = 2 * strlen("XFree86 converted bitmap font"); - font->names[i].value = makeUTF16("XFree86 converted bitmap font"); + font->names[i].size = 2 * strlen(XVENDORNAMESHORT + " converted bitmap font"); + font->names[i].value = makeUTF16(XVENDORNAMESHORT + "X converted bitmap font"); i++; - +#ifdef __VENDORWEBSUPPORT__ font->names[i].nid = 11; - font->names[i].size = 2 * strlen("http://www.xfree86.org"); - font->names[i].value = makeUTF16("http://www.xfree86.org"); + font->names[i].size = 2 * strlen(__VENDORWEBSUPPORT__); + font->names[i].value = makeUTF16(__VENDORWEBSUPPORT__); i++; - +#endif font->numNames = i; font->flags = faceFlags(face) | (symbol ? FACE_SYMBOL : 0); diff --git a/write.c b/write.c index b308934..42ccec3 100644 --- a/write.c +++ b/write.c @@ -1030,7 +1030,7 @@ writeOS2(FILE* out, FontPtr font) static int writePCLT(FILE* out, FontPtr font) { - char name[16] = "XFree86 font "; + char name[16] = XVENDORNAME" font "; char filename[6] = "X11R00"; unsigned char charComplement[8] = {0xFF, 0xFF, 0xFF, 0xFF, 0x0B, 0xFF, 0xFF, 0xFE}; -- cgit v1.2.3