summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-03-03mkfontscale 1.2.3HEADmkfontscale-1.2.3masterAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-11-06Fix -Wimplicit-float-conversion warnings from clangAlan Coopersmith1-2/+2
mkfontscale.c:110:32: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] static float bigEncodingFuzz = 0.02; ~~~~~~~~~~~~~~~ ^~~~ mkfontscale.c:262:52: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] bigEncodingFuzz = atof(argv[argn + 1]) / 100.0; ~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-11-06Resolve some -Wsign-conversion warnings from clangAlan Coopersmith3-8/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-11-06Variable scope reductions as recommended by cppcheckAlan Coopersmith4-87/+64
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-11-06ident.c: clear -Wdeclaration-after-statement warningAlan Coopersmith1-7/+8
ident.c: In function ‘getInt32’: ident.c:228:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 228 | unsigned int u[4] = { c[0], c[1], c[2], c[3] }; | ^~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-11-06mkfontscale.c: handle -Wshadow warnings from gccAlan Coopersmith1-8/+8
mkfontscale.c: In function ‘doDirectory’: mkfontscale.c:810:66: warning: declaration of ‘encodingsToDo’ shadows a global declaration [-Wshadow] 810 | doDirectory(const char *dirname_given, int numEncodings, ListPtr encodingsToDo) | ~~~~~~~~^~~~~~~~~~~~~ mkfontscale.c:117:16: note: shadowed declaration is here 117 | static ListPtr encodingsToDo; | ^~~~~~~~~~~~~ mkfontscale.c: In function ‘readEncodings’: mkfontscale.c:1353:23: warning: declaration of ‘encodings’ shadows a global declaration [-Wshadow] 1353 | readEncodings(ListPtr encodings, char *dirname) | ~~~~~~~~^~~~~~~~~ mkfontscale.c:93:21: note: shadowed declaration is here 93 | static ConstListPtr encodings, extra_encodings; | ^~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-11-04doDirectory: add missing check for malloc() returning NULLAlan Coopersmith1-0/+4
Resolves gcc analyzer warning: mkfontscale.c: In function ‘doDirectory’: mkfontscale.c:974:17: warning: use of possibly-NULL ‘s’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument] 974 | memcpy(s, xlfd_name, l - 11); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-11-04Convert to X.Org standard code styleAlan Coopersmith5-629/+724
Mostly via util/modular/x-indent-all.sh, plus some manual cleanup Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-25Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith2-2/+2
Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-20gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-20configure: Use AC_SYS_LARGEFILE to enable large file supportAlan Coopersmith1-0/+3
While font files should never be more than 2gb in size, they may be stored on filesystems with large inodes. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-03Address s UBSan warning about int left shift overflowJeremy Huddleston Sequoia1-2/+4
ident.c:220:22: runtime error: left shift of 255 by 24 places cannot be represented in type 'int' Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2022-06-19configure: Move check for zlib into its own sectionJeremy Huddleston Sequoia2-3/+4
This allows systems that don't have zlib.pc (eg: darwin) to build by specifying ZLIB_CFLAGS and ZLIB_LIBS in the build environment Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2022-04-05configure: Use pkg-config to find zlibAlan Coopersmith1-4/+1
Fixes: #6 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03mkfontscale 1.2.2mkfontscale-1.2.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-03Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-03gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Fix spelling/wording issuesAlan Coopersmith2-3/+3
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-10-27Add "ExtraBold" as a valid T1 font weight.Maya Rashish1-0/+4
Used by freefonts. Signed-off-by: Maya Rashish <maya@NetBSD.org>
2019-10-27Use case insensitive comparison for T1 font weightMaya Rashish1-14/+15
Signed-off-by: Maya Rashish <maya@NetBSD.org>
2019-03-20mkfontscale 1.2.1mkfontscale-1.2.1Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-03-07Revert "Use autoconf instead of sed to substitute @bindir@ in mkfontdir.in"Alan Coopersmith2-2/+8
This reverts commit 1f9d14bec07092d62da29a5a233cefbf84d47289. It caused https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues/5
2019-03-02mkfontscale 1.2.0mkfontscale-1.2.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-19Add mkfontdir to .gitignoreAlan Coopersmith1-0/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18Use autoconf instead of sed to substitute @bindir@ in mkfontdir.inAlan Coopersmith2-8/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18Add mkfontdir to README.mdAlan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18mkfontdir: Fix issues where mkfontscale and mkfontdir are installed in ↵Jeremy Huddleston1-1/+3
different locations or bindir contains a space https://bugs.freedesktop.org/show_bug.cgi?id=24465 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2019-02-18mkfontdir: Fix for non-srcdir buildsJon TURNEY1-1/+1
Fix commit ad5fefcc7a0a0beb1c02270d9f28c8b28da61199 for non-srcdir builds Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18mkfontdir: Make Makefile.am compatible with Solaris makeAlan Coopersmith1-1/+1
Solaris make won't substitute $< in explicit rules, only implicit ones Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18mkfontdir: config: substitute bindir in mkfontdir using Autoconf @bindir@Gaetan Nadon4-12/+8
Use the Autoconf recommended way of substituting bindir, see http://www.gnu.org/software/autoconf/manual/autoconf.html Use # sign for comment in script. Only sed is used, drop the cpp terminology. Reviewed-by: Rémi Cardona <remi@gentoo.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2019-02-18mkfontdir: config: move man pages into their own directoryGaetan Nadon3-3/+1
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2019-02-18mkfontdir: man: remove trailing spaces and tabsGaetan Nadon0-0/+0
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2019-02-18mkfontdir: Drop CVS version tag from mkfontdir.cpp tooAlan Coopersmith1-1/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18mkfontdir: config: Remove unnecessary calls from configure.acAlan Coopersmith1-1/+0
AC_PROG_SED & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18mkfontdir: Purge cvs tags.Jesse Adkins1-3/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
2019-02-18mkfontdir: Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2019-02-18mkfontdir: Fix formatting of man page so ellipsis are shown with Solaris nroffAlan Coopersmith1-2/+2
2019-02-18mkfontdir: Fill in COPYING file with copyright/license noticesAlan Coopersmith1-0/+48
2019-02-18mkfontdir: Add references to mkfontscale to man pageAlan Coopersmith1-6/+10
Also convert (1) to (__appmansuffix__)
2019-02-18mkfontdir: Let BSD make find mkfontdir.cpp when building in a separate obj dirMatthieu Herrb1-2/+4
2019-02-18mkfontdir: Find mkfontscale through @bindir@ rather than AC_PATH_PROG, since ↵Adam Jackson2-2/+2
the one in the path could be from an old install that doesn't support all the needed flags.
2019-02-18mkfontdir: build fix for non-GNU makeMatthieu Herrb1-1/+1
2019-02-18mkfontdir: Add build system for bdftopcf, mkfontdir and mkfontscaleKevin E Martin2-1/+14
2019-02-18mkfontdir: Merging XORG-CURRENT into trunkEgbert Eich2-2/+2
2019-02-18mkfontdir: Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST ↵Egbert Eich2-2/+2
2004
2019-02-18mkfontdir: Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004Egbert Eich2-2/+2
2019-02-18mkfontdir: readding XFree86's cvs IDsEgbert Eich2-2/+2
2019-02-18mkfontdir: Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 ↵Egbert Eich2-2/+2
PST 2004
2019-02-18mkfontdir: Initial revisionKaleb Keithley1-0/+4
2019-02-18mkfontdir: XFree86 4.3.0.1Kaleb Keithley1-7/+81