• Bold font in subscript

    From Nakita@21:1/5 to All on Fri Nov 11 19:26:21 2022
    Dear all,
    I want to make gnuplot to use "Bold" fonts by default, so I set the "termoption":
    set termoption font "Times New Roman:bold, 24"
    However, I recently noticed that this only applies to normal texts and subscipts with only one character, eg, "S_i". If I put more than one characters in subscrpts in curly braces, such as "A_{ij}", gnuplot will not render the "ij" in bold faces.
    The minimal test codes:

    set termoption font "Times New Roman:bold, 24"
    set xlabel "S_i"
    set ylabel "A_{ij}"
    p sin(x)

    One can notice that the xlabel can render the subscript "i" in bold faces while the "ij" are not rendered in bold faces.
    So is this a gnuplot bug or I am missing something here?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gavin Buxton@21:1/5 to All on Sat Nov 12 06:13:24 2022
    Sorry, I don't have answer, other than it probably varies by term and you could try a different output? Just a suggestion though, and I don't know if it'll work. I remember years ago having to use the postscript term and then editing the file in a text
    editor to get things like this to work!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Brown@21:1/5 to Nakita on Thu Nov 17 10:16:06 2022
    On 12/11/2022 03:26, Nakita wrote:
    Dear all,
    I want to make gnuplot to use "Bold" fonts by default, so I set the "termoption":
    set termoption font "Times New Roman:bold, 24"
    However, I recently noticed that this only applies to normal texts and subscipts with only one character, eg, "S_i". If I put more than one characters in subscrpts in curly braces, such as "A_{ij}", gnuplot will not render the "ij" in bold faces.
    The minimal test codes:

    set termoption font "Times New Roman:bold, 24"
    set xlabel "S_i"
    set ylabel "A_{ij}"
    p sin(x)

    One can notice that the xlabel can render the subscript "i" in bold faces while the "ij" are not rendered in bold faces.
    So is this a gnuplot bug or I am missing something here?

    Appears to be a bug.
    Examining the .eps file in a text editor shows that ij is not in bold

    Find "(ij)" in the file and edit the preceding

    s/(Times-New-Roman)/(Times-New_Roman:bold)/

    It is the only occurrence of "Roman)" in the file.

    FWIW The first EPS rendering engine I tried to view it with didn't
    honour "Bold" at all (it has problems with Greek letters too) :(

    --
    Regards,
    Martin Brown

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)