Menu

Underscores not showing up in gif/png/jpg

Mark Shaw
2023-01-04
2023-01-05
  • Mark Shaw

    Mark Shaw - 2023-01-04

    Underscores are not showing up. From the .fig source:

    4 0 0 50 -1 18 12 0.0000 4 165 270 150 1500 tdi\001
    4 0 0 50 -1 18 12 0.0000 4 210 885 4800 3000 tdi_local\001 # here's the underscore
    4 0 0 50 -1 18 12 0.0000 4 165 345 7650 1500 tdo\001

    Screencap of exported image attached. Is this a known bug, or am I missing a configuration setting?

     
  • Mark Shaw

    Mark Shaw - 2023-01-04

    Forgot: xfig 3.2 patchlevel 5a running under RHEL.

     
  • tkl

    tkl - 2023-01-05

    The lettering happens to be at the bottom of the image. The underscore is cut off because xfig thinks it is beyond the extents of the image.
    Choose "Polyline", draw a single point (alternate click) of width 0 below the text. Or draw an unfilled box with width 0 around the whole drawing. These invisible objects will not show up, but the bounding box of the image accomodates these objects.

    The issue to not recognize that an underscore might extend below the baseline of a text is fixed with commit [3cc525] in fig2dev.

     

    Related

    Commit: [3cc525]

    • Mark Shaw

      Mark Shaw - 2023-01-05

      Thanks. Easy fix - I actually just added a second text element to force "tdi_local" up a bit, and cropped the helper text out with GIMP after exporting the PNG.

      Odd little bug.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.