Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text: Rename INTERNAL_PADDING to GUTTER #18447

Merged
merged 1 commit into from
Nov 2, 2024
Merged

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Nov 2, 2024

Adobe documentation refers to the 2px padding as the gutter.

Adobe documentation refers to the 2px padding as the gutter.
@kjarosh kjarosh added text Issues relating to text rendering/input A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup labels Nov 2, 2024
@kjarosh kjarosh merged commit b5390a1 into ruffle-rs:master Nov 2, 2024
22 checks passed
@kjarosh kjarosh deleted the gutter branch November 2, 2024 10:06
///
/// See <https://open-flash.github.io/mirrors/as2-language-reference/TextFormat.html#getTextExtent()>.
/// See <https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextLineMetrics.html>.
const GUTTER: Twips = Twips::new(40);
Copy link
Collaborator

@evilpie evilpie Nov 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using Twips::from_pixels_i32 would have been slightly more obvious.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, merged just a second before this comment :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup text Issues relating to text rendering/input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants