Open tillderoquefeuil opened 3 weeks ago
This pull request adds line height support to the TextLayout
struct in the ril
library. It introduces a new method with_line_height
and includes an example demonstrating its usage.
Change | Details | Files |
---|---|---|
Added a new method with_line_height to the TextLayout struct |
|
src/text.rs |
Created a new example to demonstrate the usage of the with_line_height method |
|
examples/line_height.rs |
This commit introduces a new method
with_line_height
in theTextLayout
struct, which allows setting the line height of the text. This method must be called before adding any text segments. The commit also includes an example usage of thewith_line_height
method in theline_height.rs
file.All tests still work, the code is formatted and clippy does not show error on added code.
Summary by Sourcery
Add line height support to the
TextLayout
struct by introducing thewith_line_height
method, and provide an example usage in a new example file.New Features:
with_line_height
in theTextLayout
struct to allow setting the line height of text.Enhancements:
with_line_height
method in a new fileline_height.rs
.