Skip to content
Snippets Groups Projects
  1. Jun 18, 2024
  2. Jun 14, 2024
  3. Jun 13, 2024
  4. Sep 08, 2023
  5. Sep 07, 2023
  6. Sep 05, 2023
  7. Sep 04, 2023
  8. Mar 16, 2023
  9. Jan 18, 2023
  10. Apr 07, 2022
  11. Apr 06, 2022
  12. Dec 22, 2021
  13. Dec 14, 2021
  14. Dec 08, 2021
  15. Nov 30, 2021
    • Ivan Oleynikov's avatar
      Draw background rectangle behind the (possibly multiline) overlay text · 5e36d10a
      Ivan Oleynikov authored
      Before this commit, the background rectangle was drawn to cover only one line
      of text (which was ok since multiline overlay text was not supported). Now
      the code correctly calculates the dimensions on the rendered text and put the
      rectangle of the right size under it.
      5e36d10a
    • Ivan Oleynikov's avatar
      Move Cairo layout creation and display code to two separate functions · a810b71f
      Ivan Oleynikov authored
      This effectively splits the imv_canvas_printf function into two separate
      functions, one to create a layout containing given text and the other one
      to show it on the canvas. These functions can be useful for the future code
      I will add to display text with a background rectangle behind it. Existing
      imv_canvas_printf function does not allow this
      a810b71f
    • Ivan Oleynikov's avatar
      Set IFS env variable to "" for overlay_text shell expansion · 46906921
      Ivan Oleynikov authored
      This prevents wordexp function from splitting the output of shell expansion
      into “words” and, as a consequence, removing the newlines from it. With this
      commit applied, setting
      
        overlay_text = $(echo -e 'hello\nworld!')
      
      displays
      
        hello
        world!
      
      in Imv window. Without this commit, the same overlay_text setting would display
      
        hello world!
      
      since wordexp splits the string "hello\nworld!" into two words and connects
      them with a space.
      
      This should not break any of the commands executed in $(), because the IFS
      variable is *not* inherited by their shell. The commands don't see this change
      and run with the default IFS value.
      46906921
Loading