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 rotation #424

Closed
wants to merge 12 commits into from
Closed

Text rotation #424

wants to merge 12 commits into from

Conversation

15artis
Copy link
Contributor

@15artis 15artis commented Apr 21, 2024

No description provided.

@15artis
Copy link
Contributor Author

15artis commented Apr 21, 2024

Need to add add_xform() to render_glyph
1713680803444

@lewis-carson
Copy link

Is there anything else needs implemented? I can lend a hand but this looks pretty feature complete to me

@15artis
Copy link
Contributor Author

15artis commented Apr 21, 2024

text supports rotation at any Angle, but borders do not

Copy link
Collaborator

Choose a reason for hiding this comment

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

Delete that file

src/style.rs Outdated
Comment on lines 1024 to 1031
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Rotation {
Rotation0,
Rotation90,
Rotation180,
Rotation270,
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

This should have better naming like:

Suggested change
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Rotation {
Rotation0,
Rotation90,
Rotation180,
Rotation270,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Rotation {
NoRotation,
RotateRight,
RotateUpsideDown,
RotateLeft,
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

although I don't feel like rotate is anyhow good

Copy link
Collaborator

Choose a reason for hiding this comment

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

Preferably it should somehow comply with how CSS defines this attributes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, thanks for your advice. I will revise it right away

src/style.rs Outdated
Comment on lines 1739 to 1751
pub fn rotation_0(self) -> Self {
self.rotation(Rotation::Rotation0)
}
pub fn rotation_90(self) -> Self {
self.rotation(Rotation::Rotation90)
}
pub fn rotation_180(self) -> Self {
self.rotation(Rotation::Rotation180)
}
pub fn rotation_270(self) -> Self {
self.rotation(Rotation::Rotation270)
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

@15artis 15artis requested a review from panekj April 21, 2024 14:47
@dzhou121
Copy link
Contributor

Does this require the vger RP?

@15artis
Copy link
Contributor Author

15artis commented Apr 22, 2024

yes

@15artis 15artis marked this pull request as draft April 25, 2024 14:42
@15artis 15artis closed this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants