diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-20 01:55:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-20 01:55:04 +0000 |
commit | 2c99129a39be3be6622c7efa6826222141d4de1e (patch) | |
tree | 95f4cdda555eef7f4e9a98994ce081e2364a8a4a /Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/parsettfatt.c | |
parent | 5817f54a04657ab24f46489d2ddb97d47c3bef79 (diff) |
dvisvgm-3.0.1 + patches linked from https://github.com/TeX-Live/texlive-source/pull/59#issuecomment-1397666966
git-svn-id: svn://tug.org/texlive/trunk@65593 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/parsettfatt.c')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/parsettfatt.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/parsettfatt.c b/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/parsettfatt.c deleted file mode 100644 index 1b6a172a0e9..00000000000 --- a/Build/source/texk/dvisvgm/dvisvgm-src/libs/ff-woff/fontforge/parsettfatt.c +++ /dev/null @@ -1,42 +0,0 @@ -/* Copyright (C) 2000-2012 by George Williams */ -/* - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - - * The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO - * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; - * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR - * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -#include "fontforge.h" - -int memushort(uint8 *data,int len, int offset) { - if ( offset>=0 && offset+1<len ) { - int ch1 = data[offset], ch2 = data[offset+1]; -return( (ch1<<8)|ch2 ); - } else { - LogError( _("Bad font, offset out of bounds.\n") ); -return( 0 ); - } -} - -void memputshort(uint8 *data,int offset,uint16 val) { - data[offset] = (val>>8); - data[offset+1] = val&0xff; -} |