Re: Fonts to small
Bob Friesenhahn <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 18 Apr 2017, Jim Murphy wrote: > > I believe the following X resource is needed, as font[1-9] is for > annotating. > > textFont (class textFont) > Specifies the name of the preferred font to use in fixed > (typewriter style) formatted text. The default is 14 > point Courier. > > I get the following error when trying to enter it from the command > line: > gm display: Unrecognized option (-textFont) [No such file or directory]. > Not sure why, as -font works. These are X resources, not command line options. X resources are loaded from a text file by the 'xrdb' program (see the xrdb manual page) and there are some interactive programs which allow adjusting resources. It used to be that the content of $HOME/.Xdefaults was automatically loaded, but as mentioned before, the use of X resources seems to have fallen out of use on today's desktop and your desktop might not do this by default. It can be done in a personal .xinitrc or .xsession file. Programs still existing for dealing with resources are 'xrdb', 'appres', and 'editres'. The 'xlsfonts' program may be used to list fonts available on the server, but only classic X11 fonts specified with names that start with a dash can be used with 'display'. The following provide useful information regarding X11 resources. https://wiki.archlinux.org/index.php/x_resources https://en.wikipedia.org/wiki/X_resources > Upon reviewing the output of Command > Miscellany > Image Info > I found the following 2 lines: > > Font: -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1 > > Text font: -*-fixed-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 > > These appear to be the defaults. I didn't check to see if "fixed" > translates to "Courier", but doesn't the the 12 represent > 12 Point and not 14 Point as indicated in the man page? If I'm > reading the XLFD correctly, I believe this would be 12 Point. Yes, this would be 12 point. 12 point is a common default because it produces fairly large text on most screens. If 12 point (a specific size which can be measured with a ruler) is rendering very small, then it would be because the resolution of the font does not match the resolution of the screen. If you have a very high resolution screen, then it may help to make sure that high resolution fonts (100dpi) are installed and make sure that the font search path looks for 100dpi fonts first The 'xset' utility is used to set or query the font path. Use 'xset -q' to see the current font path and other terminal settings. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot