diff options
author | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
---|---|---|
committer | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
commit | c6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch) | |
tree | 1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/texk/ttfdump/libttf/gasp.c | |
parent | 07ee7222e389b0777456b427a55c22d0e6ffd267 (diff) |
French translation for tlmgr updated
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttfdump/libttf/gasp.c')
-rw-r--r-- | Build/source/texk/ttfdump/libttf/gasp.c | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/Build/source/texk/ttfdump/libttf/gasp.c b/Build/source/texk/ttfdump/libttf/gasp.c deleted file mode 100644 index 9f3aadc467b..00000000000 --- a/Build/source/texk/ttfdump/libttf/gasp.c +++ /dev/null @@ -1,75 +0,0 @@ -/* gasp.c -- Grid-fitting And Scan-conversion Procedure - * Copyright (C) 1996 Li-Da Lho, All right reserved - */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include <stdio.h> -#include <stdlib.h> -#include "ttf.h" -#include "ttfutil.h" - -/* $Id: gasp.c,v 1.1.1.1 1998/06/05 07:47:52 robert Exp $ */ - -static void ttfLoadGASP(FILE *fp,GASPPtr gasp,ULONG offset); - -void ttfInitGASP(TTFontPtr font) -{ - ULONG tag = FT_MAKE_TAG ('g', 'a', 's', 'p'); - TableDirPtr ptd; - - if ((ptd = ttfLookUpTableDir(tag,font)) != NULL) - { - font->gasp = XCALLOC1 (GASP); - ttfLoadGASP(font->fp,font->gasp,ptd->offset); - } -} - -static void ttfLoadGASP (FILE *fp,GASPPtr gasp,ULONG offset) -{ - int i; - - xfseek(fp, offset, SEEK_SET, "ttfLoadGASP"); - - gasp->version = ttfGetUSHORT(fp); - gasp->numRanges = ttfGetUSHORT(fp); - - gasp->gaspRange = XCALLOC (gasp->numRanges, GASPRANGE); - - for (i=0;i<gasp->numRanges;i++) - { - gasp->gaspRange[i].rangeMaxPPEM = ttfGetUSHORT(fp); - gasp->gaspRange[i].rangeGaspBehavior = ttfGetUSHORT(fp); - } -} - -void ttfPrintGASP(FILE *fp,GASPPtr gasp) -{ - int i; - - fprintf(fp,"'gasp' Table - Grid-fitting And Scan-conversion Procedure\n"); - fprintf(fp,"---------------------------------------------------------\n"); - - fprintf(fp,"'gasp' version:\t %d\n",gasp->version); - fprintf(fp,"numRanges: \t %d\n\n",gasp->numRanges); - - for (i=0;i<gasp->numRanges;i++) - { - fprintf(fp,"\t gasp Range %d\n",i); - fprintf(fp,"\t rangeMaxPPEM:\t %d\n", - gasp->gaspRange[i].rangeMaxPPEM); - fprintf(fp,"\t rangeGaspBehavior:\t 0x%04x\n\n", - gasp->gaspRange[i].rangeGaspBehavior); - } - fprintf(fp,"\n"); -} - -void ttfFreeGASP(GASPPtr gasp) -{ - if (gasp != NULL) - { - free(gasp->gaspRange); - free(gasp); - } -} |