[Thread Prev][Thread Next][Index]

Re: [ferret_users] PyFerret: latitude labels corrupted



Dear PyFerret users,

I tried a system font for the first time.  Is there a list of available system fonts?  (Well, because it's called "system" fonts, do we have to ask the OS for the list?)

On Fri, May 22, 2020 at 9:28 AM Karl Smith - NOAA Affiliate <karl.smith@xxxxxxxx> wrote:
Actually, I just tried on my own Mac and it does show the problem when I am using the Hershey font (Ferret's font, which is the default).  
If you use a system font ("SET TEXT /FONT=Arial" for example), then there is no problem.

What I immediately noticed was the shortness of the minus sign.  I think I know the reason: the "hyphen" symbol is used for the minus sign.  This is (or used to be?) a problem for other plotting programs, too, like gnuplot.

I guess that the "hyphen" of the Hershey font is long because the symbol's main use is for minus sign not for hyphen.  I guess the ultimate solution would be to differentiate the two: the unicode Minus Sign ( "−" )and the unicode Hyphen-Minus ( "-" ).  The latter is identical to the ASCII hyphen.  (Or, the endash or emdash in the extended ASCII might be fine, because Ferret already uses the degree symbol ( " ° " ) from the extended ASCII.)

. . . Anyway, I asked the question about the font above, because there may be a font in which the hyphen symbols isr relatively long and thin.  In Arial, the symbol is rather stubby (less so than in Helvetica, though).  Perhaps I should use Courier for numerical labels. . . .

Regards,

Ryo

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement