Skip to content

Potential Way get length of text at certain fontsize  #49

@Charles-Schleich

Description

@Charles-Schleich

I have been wondering if it would be possible to get the length of a line of text for a certain font and at a certain font size.
Something along the lines of

get_length( text: String, font_size: i64 , font: &IndirectFontRef) -> Mm;

Any idea how I might go about implementing something like this ?
Or where I should start ?
I'm newish to rust, but I'm keen to give it a shot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions