Skip to content

CPUI 0.1.2

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 03:44
· 21 commits to dev since this release
fce0789

Visual caret movement in right-to-left text, CJK punctuation that follows the text around it, less copying per frame on Windows and Wayland, and fixes for windows that stayed hidden on Windows, crashes, quitting on macOS, non-Latin keyboard layouts and input methods.

Added

  • Frame::text_in, Frame::measure_in and Frame::advances_in lay out part of a text with its punctuation decided from all of it. (#43)

Changed

  • Left and Right move the caret in visual order in right-to-left and mixed text, by character and by word, and reach every position. (#32, #38, #39)
  • Text is shaped word by word from a cache, so long text measures faster, and kerning no longer applies across spaces. (#43)
  • On Windows and Wayland, a frame now hands only the areas it changed to the system instead of the whole window, and in browsers each changed area is sent on its own. (#49)

Fixed

  • On Windows, application windows no longer stay hidden at startup. (#18)
  • Animations no longer crash on displays that report a 0 Hz refresh rate, as in virtual machines or over Remote Desktop. (#19)
  • With a screen reader on, items that share a key no longer crash the application. (#20)
  • On macOS, the Quit menu item, Command + Q and the Dock ask App::close_requested for each window before quitting. (#21)
  • On Windows and X11, keys still held when a window gains focus no longer act in it. (#22)
  • Shortcuts such as Ctrl + C work on Russian, Greek, Hebrew and other non-Latin keyboard layouts. (#24)
  • On Windows and X11, the input method's candidate window stays at the text after a scale change, and on Windows after switching windows. (#26)
  • Modal dialogs keep keyboard and assistive technology input inside the active dialog. (#29)
  • Read-only text inputs no longer offer assistive technology a set-value action. (#37)
  • On Linux, the dark appearance applies even when the desktop portal answers late, as at the first launch after login. (#23)
  • On Windows, the title bar and the content follow appearance changes made at run time. (#25)
  • On Windows, a minimized window with a running animation no longer keeps a processor core busy. (#34)
  • Frame::cell_char keeps glyphs wider than their cells inside them, such as ambiguous-width symbols in CJK monospaced fonts. (#36)
  • Sliders reach their upper end when the step does not divide the range, and keep large integer values apart. (#31)
  • Calendars leave cells before year 1 and after year 9999 blank. (#30)
  • On the web, clicks land on the control under the pointer when the browser emulates a device. (#28)
  • On Linux, file dialog results no longer reach another window after the one that opened the dialog closed. (#33)
  • Punctuation such as — and “ ” now takes the font of the CJK text around it, whether or not the line also has Latin letters. (#43)
  • Screen readers and other assistive tools can now set a number input to a number, not only to text. (#46)