[Thread Prev][Thread Next][Index]

[ferret_users] pyferret fonts: italicize only a part of text?



Dear Ferret users,

I'm trying to find ways to print part of a single piece of text in italics:

set text/font=Times
. . . .
label 180,0,0,0,0.3,"upright italic upright"

I thought "upright <i>italic</i> upright" would do that but found it doesn't.  (<i> is the HTML tag for italicization.)

In the classical (Hershey) font set, you change fonts using the "@" font commands:

"@DRupright @CIitalic @DRupright"

How do we do this on PyFerret's new font system?

I'm using PyFerret v7.63 on macOS 11.4 .

Ryo

!--- a self-contained example ---
set text/font=Times
use coads_climatology
fill/l=1 sst
label 180,0,0,0,0.3,"upright <i>italic</i> upright"


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

Privacy Policy | Disclaimer | Accessibility Statement