From ffe218bbb0ffa6d2a7f7cbf6b1f81797e667183a Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 5 Mar 2012 09:59:38 +0100 Subject: libfontenc xserver pixman mesa git update 5 Mar 2012 font-util-1.3.0 xclock-1.0.6 libXfont-1.4.5 inputproto-2.2 --- libXfont/src/FreeType/ftenc.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'libXfont/src/FreeType/ftenc.c') diff --git a/libXfont/src/FreeType/ftenc.c b/libXfont/src/FreeType/ftenc.c index 99defbed6..9e31d7529 100644 --- a/libXfont/src/FreeType/ftenc.c +++ b/libXfont/src/FreeType/ftenc.c @@ -1,15 +1,15 @@ -/* +/* Copyright (c) 1998-2003 by Juliusz Chroboczek - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - +furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -43,13 +43,13 @@ THE SOFTWARE. static int find_cmap(int, int, int, FT_Face, FT_CharMap *); static int -FTEncFontSpecific(char *encoding) +FTEncFontSpecific(const char *encoding) { - char *p = encoding; + const char *p = encoding; if(strcasecmp(encoding, "microsoft-symbol") == 0) return 1; - + while(*p != '-') { if(*p == '\0') return 0; @@ -69,7 +69,7 @@ FTPickMapping(char *xlfd, int length, char *filename, FT_Face face, int ftrc; int symbol = 0; const char *enc, *reg; - char *encoding_name = 0; + const char *encoding_name = 0; char buf[20]; if(xlfd) @@ -123,9 +123,9 @@ FTPickMapping(char *xlfd, int length, char *filename, FT_Face face, } } } - + for(mapping = encoding->mappings; mapping; mapping = mapping->next) { - if(find_cmap(mapping->type, mapping->pid, mapping->eid, face, + if(find_cmap(mapping->type, mapping->pid, mapping->eid, face, &cmap)) { tm->named = 0; tm->cmap = cmap; @@ -144,7 +144,7 @@ FTPickMapping(char *xlfd, int length, char *filename, FT_Face face, return Successful; } } - + return BadFontFormat; native: @@ -155,7 +155,7 @@ FTPickMapping(char *xlfd, int length, char *filename, FT_Face face, return Successful; } -static int +static int find_cmap(int type, int pid, int eid, FT_Face face, FT_CharMap *cmap_return) { int i, n; @@ -177,7 +177,7 @@ find_cmap(int type, int pid, int eid, FT_Face face, FT_CharMap *cmap_return) /* prefer Microsoft Unicode */ for(i=0; icharmaps[i]; - if(cmap->platform_id == TT_PLATFORM_MICROSOFT && + if(cmap->platform_id == TT_PLATFORM_MICROSOFT && cmap->encoding_id == TT_MS_ID_UNICODE_CS) { *cmap_return = cmap; return 1; @@ -207,7 +207,7 @@ find_cmap(int type, int pid, int eid, FT_Face face, FT_CharMap *cmap_return) return 0; } -unsigned +unsigned FTRemap(FT_Face face, FTMappingPtr tm, unsigned code) { unsigned index; -- cgit v1.2.3