[LeetCode] Maximum Font to Fit a Sentence in a Screen

1 · · Feb. 21, 2022, 9:13 a.m.
1618. Maximum Font to Fit a Sentence in a Screen You are given a string text. We want to display text on a screen of width w and height h. You can choose any font size from array fonts, which contains the available font sizes in ascending order. You can use the FontInfo interface to get the width and height of any character at any available font size. The FontInfo interface is defined as such: 12345678interface FontInfo { // Returns the width of character ch on the screen using font size font...