LiveSplit / livesplit-core

livesplit-core is a library that provides a lot of functionality for creating a speedrun timer.

Home Page:https://livesplit.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjust splits column width based on the current font

CryZe opened this issue · comments

In the original LiveSplit we measure the width of 88:88:88 I believe and use that as the column width. We should do something similar here instead of hardcoding a width.

LiveSplit uses 9:00:00 for deltas and 24:00:00 otherwise (source).
Would this require a new function on ResourceAllocator just for querying the width of a given string? Or should it be even more specific and take the number of digits/colons as function arguments?

Nah, I'd say the splits simply should have labels for these around.