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

add alternate transform representation in PaintTransformed #113

Merged
merged 9 commits into from
Nov 24, 2020

Conversation

PeterConstable
Copy link
Collaborator

Per #88

@rsheeter
Copy link
Contributor

rsheeter commented Nov 13, 2020

As noted on #88 IMHO we should do a new Paint with one field: angle. Skew and scale and so on are best represented by PaintTransformed; you can Rotate>PaintTransformed (and vice versa) if you need both.

Edit: now I understand why we wanted skew (see #88)

@rsheeter
Copy link
Contributor

I'm very sleepy but this lgtm. @anthrotype wdyt?

@PeterConstable PeterConstable force-pushed the petercon/transformparam branch from 3941503 to 672a0da Compare November 14, 2020 01:20
@PeterConstable PeterConstable force-pushed the petercon/transformparam branch from 672a0da to 9b4c446 Compare November 23, 2020 23:43
Copy link
Collaborator

@drott drott left a comment

Choose a reason for hiding this comment

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

Generally looks good to me, a few suggested edits to update to latest naming.

| Type | Field name | Description |
|-|-|-|
| uint8 | format | Set to 9. |
| Offset24 | paintOffset | Offset to a Paint subtable, from start of PaintRotateSkew table. |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
| Offset24 | paintOffset | Offset to a Paint subtable, from start of PaintRotateSkew table. |
| Offset24 | paintOffset | Offset to a Paint subtable, from start of PaintSkew table. |

| Offset24 | paintOffset | Offset to a Paint subtable, from start of PaintRotateSkew table. |
| VarFixed | xSkewAngle | Angle of skew in the direction of the x-axis, in counter-clockwise degrees. |
| VarFixed | ySkewAngle | Angle of skew in the direction of the y-axis, in counter-clockwise degrees. |
| VarFixed | centerX | x coordinate for the center of rotation. |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
| VarFixed | centerX | x coordinate for the center of rotation. |
| VarFixed | centerX | x coordinate for the center of skew. |

| VarFixed | xSkewAngle | Angle of skew in the direction of the x-axis, in counter-clockwise degrees. |
| VarFixed | ySkewAngle | Angle of skew in the direction of the y-axis, in counter-clockwise degrees. |
| VarFixed | centerX | x coordinate for the center of rotation. |
| VarFixed | centerY | y coordinate for the center of rotation. |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
| VarFixed | centerY | y coordinate for the center of rotation. |
| VarFixed | centerY | y coordinate for the center of skew. |

@google-cla
Copy link

google-cla bot commented Nov 24, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

1 similar comment
@google-cla
Copy link

google-cla bot commented Nov 24, 2020

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@PeterConstable PeterConstable force-pushed the petercon/transformparam branch from e458f5b to 5a7f441 Compare November 24, 2020 16:42
@drott
Copy link
Collaborator

drott commented Nov 24, 2020

@googlebot I fixed it.

@drott drott merged commit 09657b3 into googlefonts:master Nov 24, 2020
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.

5 participants