summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-03-03xfontsel 1.1.1HEADxfontsel-1.1.1masterAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-11Add -help and -version optionsAlan Coopersmith2-10/+30
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-11Print which arguments were unknown before giving usage messageAlan Coopersmith1-1/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-11include config.h in xfontsel.c before checking for USE_GETTEXTAlan Coopersmith1-0/+3
It will never be true if we never include the file that defines it. Fixes: f286ef3 ("Use gettext() to localize messages if available") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-09Use gettext() to localize messages if availableAlan Coopersmith4-14/+123
Originally fixed for Solaris in August 2000 by Jay Hobson under Sun bug 4256527 "Internationalize xfontsel" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-09-10Fixed -Wshadow declaration warningsThomas Kuehne1-16/+16
2022-07-10xfontsel 1.1.0xfontsel-1.1.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-05-15gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-05include actual screen resolution in the resX & resY menusGreg A. Woods2-10/+50
When given the "-scaled" option fetch the actual screen resolution and add that to the list of available resolutions for the resX and resY menus. I.e. If the pattern contains '*' for the resX and resY fields (i.e. instead of '0') then we wil end up with the menu containing "0, 100, NNN", which makes for a really good demonstration of how scaling of fonts without knowing the true screen resolution can lead to very wonky results. Even if the values in the pattern are '0' you still get the true DPI as an option in the menus. When you specify a size for a scalable font, you should use points, never pixels. Points are a physical unit of measurement. There are always 72 points per inch. Never more or less. So to scale fonts properly on a screen the scaler needs to know the resolution of the display in pixels per inch in order to render text at a measurable physical point size. In the current X11 world it is still up to the user to correctly specify the actual screen resolution when requesting a scalable font to render text with, and this is now possible to demonstrate with this change to Xfontsel. So with the actual correct resolution selected from the resX and resY menus (and if the resolution figures are accurate and if the display hasn't been scaled by the hardware or, e.g. XrandR) then choosing any avaliable point size will show the sample text with a height on the screen physically matching the chosen point size. To that end the default pixelSizeList resource has been changed to just "0", as it should never be changed, and instead the default "pointSizeList" resource has been extended with a list of reasonable real-world sample (deci)point sizes. [also touch up the help text and call exit() to exit main()] Signed-off-by: Greg A. Woods <woods@robohack.ca>
2022-04-05Add 'reset' buttonAlexander Gromnitsky2-6/+38
It's very tedious to deselect multiple XLFD field names if you want to start from scratch (it's often easier to relaunch the app). Hence, a simple reset button can be handy. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-05Fixed -Wmissing-field-initializers warningThomas Kuehne1-0/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03mark Quit() & QuitAction() as noreturnAlan Coopersmith2-3/+4
Clears gcc warnings: xfontsel.c: In function ‘QuitAction’: xfontsel.c:1477:1: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn] QuitAction(Widget w, XEvent *event, String *params, Cardinal *num_params) ^~~~~~~~~~ xfontsel.c: In function ‘Quit’: xfontsel.c:1392:6: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn] void Quit(Widget w, XtPointer closure, XtPointer callData) ^~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03Clean up variable scoping in GetFontNames()Alan Coopersmith1-4/+8
Gets rid of gcc warning: xfontsel.c: In function ‘GetFontNames’: xfontsel.c:498:16: warning: declaration of ‘f’ shadows a previous local [-Wshadow] int maxField, f; ^ xfontsel.c:446:9: note: shadowed declaration is here int f, field, count; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03Fix -Wsign-compare warning from gccAlan Coopersmith1-1/+1
ULabel.c: In function ‘SetValues’: ULabel.c:670:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < *num_args; i++) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03const cleanupAlan Coopersmith4-19/+21
Clears up 32 out of 49 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-02man page: remove out-of-date COPYRIGHT sectionAlan Coopersmith1-4/+0
The information previously listed here didn't match what is present in the source code or the COPYING file, and the X(7) man page doesn't list any license information as this had claimed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith3-27/+21
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-03-09xfontsel 1.0.6xfontsel-1.0.6Alan Coopersmith1-1/+1
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-09-27Get rid of some extraneous ; at the end of C source linesAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith1-2/+5
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-06Replace TXT16 with XChar2b inlineAlan Coopersmith1-9/+5
No longer need #define to substitute it now that we no longer set it to a different type on CRAY systems. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-06Drop CRAY/WORD64 support (unifdef -UCRAY -UWORD64)Alan Coopersmith1-45/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-17xfontsel 1.0.5xfontsel-1.0.5Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-25Use C99 struct initializer for parseRec in GetFontNames()Alan Coopersmith1-5/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-19When font fails to load, grey out text instead of unmapping text widgetAlan Coopersmith1-1/+2
Before if you selected a pattern that couldn't load, such as a strange encoding, the text widget would simply stop updating, giving the user no feedback that they weren't seeing the selected font, and leaving repaint turds from menus in the text area. Now we are more clear that something is wrong, and clean up when menus overlap the text. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-19Remove extraneous braces left from commit 1d6970a838d4ed42aAlan Coopersmith1-4/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-05-26Prevent memory leak in GetFontNames if no fonts are matchedAlan Coopersmith1-3/+4
Defer creating ParseRec until after we check for numFonts = 0 and return. Fixes error found by Parfait 0.5.0.2 bug checking tool: Memory leak of pointer '<unknown>' allocated with XtMalloc(40) at line 466 of app/xfontsel/xfontsel.c in function 'GetFontNames'. pointer allocated at line 447 with XtMalloc(40). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-04-14Combine usage message stringsAlan Coopersmith1-19/+10
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-22xfontsel 1.0.4xfontsel-1.0.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Add const attribute to fieldP fix a gcc -Wwrite-strings warningAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Strip trailing whitespaceAlan Coopersmith8-49/+49
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Convert sprintf calls to snprintfAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Remove USE_TEXT_WIDGET (bug 8966)Jesse Adkins1-16/+0
It was included in the initial revision. The bug dates back to 2006, so I think it's safe to say that this never worked. Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-17/+17
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon1-1/+1
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon1-4/+4
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-1/+1
This silences an Autoconf warning
2011-01-12config: replace deprecated AC_HELP_STRING with AS_HELP_STRINGGaetan Nadon1-1/+1
This silences an Automake warning. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-06Purge cvs tags.Jesse Adkins5-16/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
2010-09-26xfontsel 1.0.3xfontsel-1.0.3Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-26config: Remove unnecessary calls from configure.acAlan Coopersmith1-4/+0
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-26config: 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>