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

Fix for Bounding Box Issue #181

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Fix for Bounding Box Issue #181

wants to merge 27 commits into from

Conversation

anand-milind
Copy link
Collaborator

@anand-milind anand-milind commented Sep 16, 2022

Description

  1. Undid viewBox width and height being set to the glyph's width and height as they were being used to create the transformationMatrix in CTSNV, which eventually resulted in the glyphs being rendered as squares after the transformation was applied.

  2. Transforms defined in the root svg node were being ignored previously by the SNV parser, which was causing a few fonts like GeckoEmoji to be rendered improperly. Added an else statement to store the transform and then apply it on the bounds.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

thakral-shubham and others added 14 commits May 25, 2022 11:55
… I add support for image elements correctly as currently its non generic
Revering because Tushar will fix this properly, and I need to take some older commits too to make this run, so removing.
This reverts commit 2e1a7a7.
* fix testcases for offset/opacity as a percentage

* support of percentage when specified in opacity,offset for stroke/fill properties

* Revert "support of percentage when specified in opacity,offset for stroke/fill properties"

This reverts commit 79c63cc.

* Adding a new function name ParseAlphaValue for values between 0-1

* minor change in last commit
anand-milind and others added 13 commits September 22, 2022 11:54
* Part of changes required to support the fix for the bounding box issue. ViewBox dimensions will be used to shift the glyph.
* Also removed UpdateViewBox() as it was not needed anymore.
* Changed the baseline for image.svg as the old one was using default values of width and height which are now being obtained after parsing the image data
* fix in circleCi testcase

* minor fix in circleCi testcase
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.

None yet

3 participants