summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-03-19 17:09:00 +0000
committerEgbert Eich <eich@suse.de>2004-03-19 17:09:00 +0000
commit2a51ce8bacc589ae2dc4388f3498650d9be999f0 (patch)
treef07bed51001315817ccb08ae3c638e32c5b1edca
parentad69c9b01a54748afa1a8790b9505dd8bacccefe (diff)
13. fixed gtf + man pages (Xserver name and config file name configurable
in Imake config files) (Egbert Eich). 12. Fixed xinit/startx man pages (server name and config file configurable) (Egbert Eich). 11. Fixed fontstosfnt (project and support address configurable) (Egbert Eich). 10. Fixed pswrap (relaced XFree86 with X11) (Egbert Eich). 9. fixed rman (added Xorg as system name) (Egbert Eich). 8. Fixed mkhtml (Egbert Eich). 7. Fixed default keyboard rules file in servers and setxkb (configurable) (Egbert Eich). 6. Fixed XawVendor (configurable) (Egbert Eich).
-rw-r--r--read.c26
-rw-r--r--write.c2
2 files changed, 16 insertions, 12 deletions
diff --git a/read.c b/read.c
index 56a8ba5..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.1 2004/03/04 17:48:48 eich Exp $ */
/* $XFree86: xc/programs/fonttosfnt/read.c,v 1.5 2003/12/19 02:05:39 dawes Exp $ */
-
#include <stdio.h>
#include <ft2build.h>
@@ -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};