haiku/headers
Pascal Abresch 322be3bee0 StatusView: compute font size based on scrollbar size
Compute a font size that just fits the available space, instead of using
an arbitrary scaling. This makes the code adjust to any font and any UI
size.

Select the appropriate font using a binary search, which will need only
a few attempts (I think 6 font sizes will be tried at the default
config)

Change-Id: Ie3b8678678c0d940981f1785418aa8ab354d01c5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3893
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-15 08:45:06 +00:00
..
build add physical_block_size field where applicable 2022-09-23 06:56:01 +00:00
compatibility pthread: add pthread_{getname_np,setname_npp} 2022-10-18 16:30:54 +00:00
config riscv: cleanup architecture macro checks 2021-09-01 18:04:59 +00:00
cpp
glibc
libs Removed 'register' storage class compiler warnings 2022-09-12 14:03:28 +00:00
os BBitmap: add ability to specify client-defined area 2023-01-02 18:07:53 +00:00
posix Added missing posixoptions and sysconf constants according POSIX.1-2017 standard 2022-12-23 01:57:05 +00:00
private StatusView: compute font size based on scrollbar size 2023-01-15 08:45:06 +00:00
tools cppunit: Enable CPPUNIT_HAVE_SSTREAM for the non-legacy GCC. 2022-03-29 19:09:38 -04:00