# How to set a few characters italic while keeping the rest of the string in normal fonts?

In my colorbar label, I would want something like this: abcd, with the first letter being italic. How could I achieve that?

I see this in the pstext documentation, unfortunately, it throws out an error:
@%*no* % sets the font to *no* ;

If I do something like the below, it will apply to the whole label, am I right?
font=(28,"Times-Italic")

I don’t understand, you did not use @%*no*% verbatim did you? Presumably you tried a font number of font name, e.g., @%6% or @%Times-Italic% right? What error does that throw?

1 Like

What I tried was to do this @%f%CO2, expecting the results to be fCO2. Below is the error:
PSL: Error: font f not recognized - reset to Helvetica
Thanks, Paul. Now I understand that the way it works is @%FontName% controls the font of the characters following it. As a Matlab person, this is kind of a new concept. In Matlab, people wrap things up using {} like this {\it f}.