summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/libttf/ltsh.c
diff options
context:
space:
mode:
authorDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
committerDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
commitc6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch)
tree1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/texk/ttfdump/libttf/ltsh.c
parent07ee7222e389b0777456b427a55c22d0e6ffd267 (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/ltsh.c')
-rw-r--r--Build/source/texk/ttfdump/libttf/ltsh.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/Build/source/texk/ttfdump/libttf/ltsh.c b/Build/source/texk/ttfdump/libttf/ltsh.c
deleted file mode 100644
index 45c6f86e559..00000000000
--- a/Build/source/texk/ttfdump/libttf/ltsh.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* ltsh.c -- Linear Threshold table
- * 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: ltsh.c,v 1.1.1.1 1998/06/05 07:47:52 robert Exp $ */
-
-static void ttfLoadLTSH(FILE *fp,LTSHPtr ltsh,ULONG offset);
-
-void ttfInitLTSH(TTFontPtr font)
-{
- ULONG tag = FT_MAKE_TAG ('L', 'T', 'S', 'H');
- TableDirPtr ptd;
-
- if ((ptd = ttfLookUpTableDir(tag,font)) != NULL)
- {
- font->ltsh = XCALLOC1 (LTSH);
- ttfLoadLTSH(font->fp,font->ltsh,ptd->offset);
- }
-}
-
-static void ttfLoadLTSH (FILE *fp,LTSHPtr ltsh,ULONG offset)
-{
- xfseek(fp, offset, SEEK_SET, "ttfLoadLTSH");
-
- ltsh->version = ttfGetUSHORT(fp);
- ltsh->numGlyphs = ttfGetUSHORT(fp);
-
- ltsh->yPels = ttfMakeBYTE (ltsh->numGlyphs, fp);
-}
-
-void ttfPrintLTSH(FILE *fp,LTSHPtr ltsh)
-{
- int i;
-
- fprintf(fp,"'LTSH' Table - Linear Threshold Table\n");
- fprintf(fp,"-------------------------------------\n");
- fprintf(fp,"'LTSH' Version:\t %d\n",ltsh->version);
- fprintf(fp,"Number of Glyphs:\t %d\n",ltsh->numGlyphs);
- fprintf(fp,"\t Glyph # \t Threshold\n");
-
- for (i=0;i<ltsh->numGlyphs;i++)
- {
- fprintf(fp,"\t %d. \t\t %d\n",i,ltsh->yPels[i]);
- }
-}
-
-void ttfFreeLTSH(LTSHPtr ltsh)
-{
- if (ltsh != NULL)
- {
- free(ltsh->yPels);
- free(ltsh);
- }
-}