Gimp-Forum.net

Full Version: Creating a rectangle with text, laid on a map
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Thanks for any help. I start with opening a map, with which I'm trying to create a rectangle, with a red border, and place text on the inside of it. I've read, and watched several tutorials. I've taken notes. I still don't understand how to do this.
(06-20-2018, 09:50 PM)Bill Brookshire Wrote: [ -> ]Thanks for any help. I start with opening a map, with which I'm trying to create a rectangle, with a red border, and place text on the inside of it. I've read, and watched several tutorials. I've taken notes. I still don't understand how to do this.

A simple way:
  • Create the text layer with the text tool
  • Layer>Layer to image size (*)
  • Create a rectangle selection that frames your text
  • Set the foreground color to red
  • Edit>Stroke selection (choose "line mode")
Slightly more complicated by you keep the text layer as text, so you can edit it (but you may have to redo
the frame....)
  • Create the text layer with the text tool
  • Layer>New layer (make sure the layer has the size of your image)
  • Create a rectangle selection that frames your text
  • Set the foreground color to red
  • Edit>Stroke selection (choose "line mode") (in this case, the frame will be on its own layer)
(*) which is the important point. The text layer has little margin around the characters, so your frame would likely not fit in it (Gimp will not paint outside the layer boundaries). By doing so you enlarge the layer to make the frame fit inside.