summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-09-08font-util 1.4.1HEADfont-util-1.4.1masterPeter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2023-09-06Replace unicode files with ones that provide better terms of usePeter Hutterer18-413/+282
Identical files but these have the unicode terms-of-use (SPDX: Unicode-TOU) instead of some old license format. https://www.unicode.org/Public/MAPPINGS/ISO8859/8859-1.TXT https://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0201.TXT https://www.unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2023-02-25Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith3-3/+3
Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-22font-util 1.4.0font-util-1.4.0Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-16Add COMPRESS_FLAGS to pass options to compression commandAlan Coopersmith1-1/+9
By default, set to -n for gzip to stop recording timestamps and enable reproducible builds, and to empty for all other methods. Will require adding COMPRESS_FLAGS to Makefile.am in each font module to become effective. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-12font-util 1.3.3font-util-1.3.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-12Fix spelling/wording issuesAlan Coopersmith3-4/+4
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-08Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-08gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-11-16ucs2any: handle NULL returns from zquotedcpy()Alan Coopersmith1-0/+18
bdf file for testing: STARTFONT 2.1 FONT "Bad quotes test font-ISO10646-1 SIZE 7 75 75 FONTBOUNDINGBOX 5 7 0 -1 STARTPROPERTIES 3 SPACING "C SLANT "R ENDPROPERTIES CHARS 0 ENDFONT Before this fix, the above segfaults when the NULL return from zquotedcpy() is passed to other functions expecting a string. Fixes: 21063_61 & 21063_86 from https://cyber-itl.org/2020/10/28/citl-7000-defects.html Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-11-15ucs2any: avoid segfaults if SLANT property is missingAlan Coopersmith1-3/+6
Test case: grep -v SLANT ../../misc-misc/5x7.bdf > 5x7-noslant.bdf ucs2any 5x7-noslant.bdf ../map-ISO8859-1 -d Before this fix, the above segfaults in strcmp with a NULL slant pointer. Fixes: 21063_131 from https://cyber-itl.org/2020/10/28/citl-7000-defects.html Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-08-25font-util 1.3.2font-util-1.3.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-09ucs2any: Fix parser crash on 32 bitTobias Stoeckmann1-0/+6
It is possible to crash ucs2any or provoke successful return value even though the processing was not successful. The problem lies within a possible integer overflow when adding elements with a key which is too large. You can trigger the issue this way on a 32 bit system: $ cat > source.bdf << "EOF" STARTFONT source CHARS 1 ENCODING 1073741823 EOF $ ucs2any source.bdf Segmentation fault $ _ Another possibility would be to add "ENCODING 1" right after the CHARS line. In that case, realloc will allocate 0 bytes afterwards which is a success but might return NULL, e.g. on Linux/glibc systems. Such a result value is handled as an error and errno is evaluated and returned, even though there was no error: $ cat > source.bdf << "EOF" STARTFONT source CHARS 1 ENCODING 1 ENCODING 1073741823 EOF $ ucs2any source.bdf ucs2any: Success $ echo $? 0 $ _ Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18Update README for gitlab migrationAlan Coopersmith2-13/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-03-14font-util 1.3.1font-util-1.3.1Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-08-25Update map-JISX0201.1976-0 to current version from Unicode ConsortiumAlan Coopersmith2-17/+27
New version is exactly as downloaded on August 25, 2014 from ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0201.TXT Does not change mappings, only changes comments (including license notice). Reported-by: AGinsberg on #xorg-devel irc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-12-13fontutil.m4.in: use $PKG_CONFIG instead of pkg-configRoss Burton1-1/+2
Instead of assuming that pkg-config is on the path, require PKG_PROG_PKG_CONFIG to be called and use $PKG_CONFIG. Signed-off-by: Ross Burton <ross.burton@intel.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-16autogen.sh: Implement GNOME Build APIColin Walters1-1/+3
http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-16configure: Drop AM_MAINTAINER_MODEAdam Jackson1-1/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-12-16Fix a bunch of clang integer size conversion warnings in ucs2anyAlan Coopersmith1-12/+12
ucs2any.c:149:36: warning: implicit conversion changes signedness: 'int' to 'si ze_t' (aka 'unsigned long') [-Wsign-conversion] *dest = zrealloc(*dest, dest_size + source_size); ~~~~~~~~ ~~~~~~~~~~^~~~~~~~~~~~~ ucs2any.c:147:29: warning: implicit conversion loses integer precision: 'unsign ed long' to 'int' [-Wshorten-64-to-32] dest_size = strlen(*dest) + 1; ~ ~~~~~~~~~~~~~~^~~ ucs2any.c:148:16: warning: implicit conversion loses integer precision: 'size_t ' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] source_size = strlen(source); ~ ^~~~~~~~~~~~~~ ucs2any.c:159:8: warning: implicit conversion loses integer precision: 'int' to 'char' [-Wconversion] *t = toupper(*t); ~ ^~~~~~~~~~~ ucs2any.c:305:27: warning: implicit conversion loses integer precision: 'int' t o 'char' [-Wconversion] (*buffer)[position++] = c; ~ ^ ucs2any.c:465:21: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] if (strlen(string) <= l) return NULL; ~~~~~~~~~~~~~~ ^ ~ ucs2any.c:466:31: warning: implicit conversion changes signedness: 'int' to 'si ze_t' (aka 'unsigned long') [-Wsign-conversion] if (strncmp(string, pattern, l) != 0) return NULL; ~~~~~~~ ^ ucs2any.c:463:10: warning: implicit conversion loses integer precision: 'size_t ' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int l = strlen(pattern); ~ ^~~~~~~~~~~~~~~ ucs2any.c:730:14: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] target = strtol(p+2, &endp, 16); ~ ^~~~~~~~~~~~~~~~~~~~~~ ucs2any.c:738:11: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] ucs = strtol(p+2, &endp, 16); ~ ^~~~~~~~~~~~~~~~~~~~~~ ucs2any.c:843:19: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] bbx.cwidth = w; ~ ^ ucs2any.c:844:20: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] bbx.cheight = h; ~ ^ ucs2any.c:845:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] bbx.cxoff = x; ~ ^ ucs2any.c:846:18: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] bbx.cyoff = y; ~ ^ ucs2any.c:850:7: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] w, h, x, y, &bbx); ^ ucs2any.c:850:10: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] w, h, x, y, &bbx); ^ ucs2any.c:850:13: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] w, h, x, y, &bbx); ^ ucs2any.c:850:16: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] w, h, x, y, &bbx); ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-02-28font-util 1.3.0font-util-1.3.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-02-23configure.ac updates to match other X.Org modulesAlan Coopersmith1-7/+7
layout and comment the top portion of configure.ac add missing AC_CONFIG_SRCDIR Replace obsolete AM_CONFIG_HEADER with AC_CONFIG_HEADERS replace deprecated AC_HELP_STRING with AS_HELP_STRING Remove unnecessary AC_PROG_CC & AC_PROG_INSTALL (already provided by XORG_DEFAULT_OPTIONS) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Gaetan Nadon<memsize@videotron.ca>
2011-11-18Fix "cast discards qualifiers from pointer target type" warningsAlan Coopersmith1-2/+2
ucs2any.c: In function ‘chars_compare’: ucs2any.c:450:2: warning: cast discards qualifiers from pointer target type ucs2any.c:451:2: warning: cast discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-18Mark usage() as not returning to clear incorrect uninit var warningAlan Coopersmith1-1/+8
bdftruncate.c: In function ‘main’: bdftruncate.c:119:16: warning: ‘threshold’ may be used uninitialized in this function (It's not actually, if you consider that usage() exits when parse_threshold fails.) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-26Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-25If cross-compiling, we don't have to run mkfontdirJon TURNEY2-2/+27
If cross-compiling, we can run the host mkfontdir on the font directory, since the output is arch independent (I think) If cross-compiling and we can't find mkfontdir, just warn that mkfontdir needs to be run on the target. When not cross-compiling, the behaviour remains unchanged: mkfontdir must be found and is run (Also, bump version number to 1.2.90 as the next release must be 1.3.0 as this change adds a macro) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-25Never run fc-cache if cross-compilingJon TURNEY1-3/+4
Since the cache files produced by fc-cache are arch-dependent, there is no point in running fc-cache if cross-compiling So, even if we aren't using a DESTDIR, but are installing directly into (a hopefully non-default) prefix, don't run fc-cache when cross-compiling Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-04bdftruncate: Make sure opt_minus_w and opt_plus_w are initializedJeremy Huddleston1-2/+2
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-04-28ucs2any: Dead code removalJeremy Huddleston1-1/+0
Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-04-28bdftruncate: Properly support -w and +wJeremy Huddleston1-11/+10
Regression introduced by fb486bb1a5038912d064291b12c7aef5da3d8b63 Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-10-07font-util 1.2.0font-util-1.2.0Jeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-10-07fontutil.m4: Add XORG_FONT_FC_CONFDIR to find fontconfig's confdirJeremy Huddleston1-0/+34
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Acked-by: Gaetan Nadon <memsize@videotron.ca> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-07fontutil.m4: Add a shorthand --disable-all-encodings option.Michał Górny1-2/+12
This option is useful to disable all possible font encodings at once, without fine-graining the calling ebuilds for a list of encodings supported by each font package. The option is parsed before all other encoding options, so it basically sets defaults for all of them. Afterwards, any encoding can be re-enabled back using '--enable-<encoding>' (much like '--disable-all-encodings --enable-iso8859-2'). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Acked-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-06Purge cvs tags.Jesse Adkins1-1/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-04font-util 1.1.2font-util-1.1.2Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-04Sun's copyrights now belong to OracleAlan Coopersmith2-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-04config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-28XORG_FONT_REQUIRED_PROG: should stop when program is missing #14436Gaetan Nadon1-1/+1
The macro was designed to test for a program and, when missing, stop the configuration. The first parameter to the macro is a variable name which is used by AC_PATH_PROG to store the program path. The test failed to reference the variable content, it tested the variable name which is never blank. BDFTOPCF MKFONTSCALE MKFONTDIR COMPRESS and UCS2ANY were affected. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Tested-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-20config: upgrade to util-macros 1.8 for additional man page supportGaetan Nadon5-27/+47
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-05-20Replace /usr/X11R6 mapfiles path in manpage with actual path via sedAlan Coopersmith2-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-03-28config: remove fontutil.pc.in from the EXTRA_DIST variableGaetan Nadon1-3/+1
It is automatically distributed in the tarball by Automake Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-27config: generated fontutil.m4 is "installed", not "distributed"Gaetan Nadon1-2/+1
Generated files are not included in the tarball, only .in files The fontutil.m4.in file is added in the tarball by Automake. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-01-14Update Sun license notices to current X.Org standard formAlan Coopersmith2-58/+46
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-11-23Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-0/+2
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-11-23Makefile.am: add INSTALL target and clean ChangeLog DIST targetsGaetan Nadon1-4/+5
Add INSTALL target to generate file with INSTALL_CMD #24206 ChangeLog is not required in EXTRA_DIST #24432 ChangeLog is not required in MAINTAINERCLEANFILES #24432