[Thread Prev][Thread Next][Index]

Re: [ferret_users] different fonts through SET TEXT



Hi Marco,

Well, the choice at any particular moment is either Hershey or a PyFerret system font, not a mix of those, so the setting is either "SET TEXT/FONT=" for system fonts or "CANCEL TEXT" for Hershey. You can turn the PyFerret fonts on and off as your script draws the plot,, see below.

I'm afraid that much as we'd like to have everything in classic-Ferret scripts work without changes when taking advantage of the expanded capabilities of PyFerret, there are a few instances like this that will need some script re-writing.  You could change your labels to use the subscript and superscript methods for PyFerret fonts, https://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/SET#pyferret_subscript. Or I suppose if it makes sense, do a CANCEL TEXT before drawing the moveable labels, and SET TEXT/FONT= afterwards.

yes? set text/font=serif
yes? set text/font=arial/bold/color=blue vtics
yes? go ptest
! Description: create a simple test line plot

! spirograph picture ...
PLOT/VS/LINE/I=1:314 i*cos(i/20),i*sin(i/20)

yes? ! add a label with a ferret-style superscript, using Hershey font
yes? cancel text
yes? annotate/norm/xpos=0.5/ypos=0.6/halign=0 "super^2"


On 4/2/2019 2:49 AM, Marco van Hulten wrote:
Hi Ferretters—

The command

     SET TEXT/FONT=arial VTICS

does not work as expected, using PyFerret v7.44.  I am following

https://ferret.pmel.noaa.gov/Ferret/documentation/pyferret/pyferret-quick-start-notes

where it is stated that any SET TEXT may be applied to specific text
groups (like VTICS).  Are there groups that don't work like that?
Is this intended?

The rationale for wanting different fonts in the same plot?  I'd like to
stick with the classical Ferret HERSHEY font for my MOVEABLE labels as
they translate _ and ^ to sub- and superscripts.  But the HERSHEY
font's size cannot be changed through SET TEXT/ISIZ=.

Are these suppositions and observations correct?

—Marco

Attachment: example.png
Description: PNG image


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

Privacy Policy | Disclaimer | Accessibility Statement