FlexUI: added 8/14/16 winN/winN-prop fonts; removed horizontal wrapping
commitfef632c71084b1574d8d6341f47cb19e04f5ede4
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Tue, 3 Oct 2017 09:10:24 +0000 (3 12:10 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Tue, 3 Oct 2017 09:22:53 +0000 (3 12:22 +0300)
tree09e0e532be7b1e51d08c7b408857448770b9bbee
parent6cb71253f6184abde0041f8d9e7da94fdbf75344
FlexUI: added 8/14/16 winN/winN-prop fonts; removed horizontal wrapping

  proper horizontal wrapping with size calculations/constraints is not
  that easy; it makes the code way more complex, it never really worked,
  and i never used it. althrough it is a great feature to have (for
  proper windows resizing), it is better served by something like Yoga
  (huge and complex). but i want to have a simplistic layouter, suitable
  for common UI tasks, and not-so-complex layouts.

  maybe i'll add that wrapping feature later, but i'm not sure. it looks
  like i need a full-blown constraints solver for this feature, and i am
  not ready to migrate to Cassowary yet. ;-)

  tl;dr: removing horizontal wrapping allowed me to unify distribution
         code, made code smaller (by ~1/3), and more readable. the price
         is acceptable (for now).
src/flexui/fui_common.pas
src/flexui/fui_ctls.pas
src/flexui/fui_flexlay.pas
src/flexui/fui_gfx_gl.pas
src/flexui/fui_gfx_gl_fonts.inc