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 non-unique font names #453

Closed
wants to merge 8 commits into from

Conversation

chucker
Copy link
Contributor

@chucker chucker commented May 10, 2019

See #452.

This is only a workaround. However, given that FindFont compares by name, we probably need to do something like this. (We might be able to better filter/order which fonts are "valid" or most likely to be the one referenced in the SVG?)

garyranson and others added 7 commits May 7, 2019 19:19
- support v3.5, v4.0, v4.5.2, v4.7.2 and dotnetcore2.2
- added support for Appveyor build
- added explict FrameworkPathOverride to projects
- added <IsTextProject> to csproj file
- remove net35 from unittests. Updated licence method.
- removed / replaced EXCLUDE defines
- added back System.Web
- added back projects for SVG viewer and test runner
- added back AssemblyInfo, no not generate it in .NETCore
- removed FrameworkPathOverride - seems not to work correctly with current version
- removed unneeded framework versions
…e the DPI. Possible fix for svg-net#427

Also:

* add a barebones unit test for this
* note that even the Windows code isn't correct as soon as you have multiple screens
* on macOS, causes 20 instead of 5 unit tests to pass
- don't use Win32-specific interop calls to determine the DPI
  if not on Windows
- possible fix for svg-net#427
- add a barebones unit test for this
- note that even the Windows code isn't correct as soon as you have multiple screens
- on macOS, causes 20 instead of 5 unit tests to pass
* 'netcore' of github.com:chucker/SVG:
  Don't use Windows-specific calls if not on Windows
@chucker
Copy link
Contributor Author

chucker commented May 10, 2019

Hmmm, maybe I should have made the pull request to netcore instead. Is anything in particular left to do for the netcore branch to be closed?

@@ -56,7 +56,7 @@ protected override void Render(ISvgRenderer renderer)
}

/// <summary>
/// Gets the <see cref="GraphicsPath"/> for this element.
/// Gets the <see cref="System.Drawing.Drawing2D.GraphicsPath"/> for this element.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change unnecessary ?

Copy link
Member

@mrbean-bremen mrbean-bremen left a comment

Choose a reason for hiding this comment

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

Thanks for that - but can you please make a PR from current master? E.g. in case you haven't cloned the original branch, something like:

git remote add vvvv https://github.com/vvvv/SVG
git fetch --all
git branch -b vvvv_master -t vvvv/master
git co vvvv_master
git co -b font-names-pr
... add your changes
git commit -a
git push --set-upstream origin font-names-pr

Otherwise it is difficult to review and to merge...
Thanks!
Note: you may already know all of this, this is just in case; and this is out of my head, so no guarantee it is all correct

@chucker
Copy link
Contributor Author

chucker commented May 15, 2019

(Will do when I get around to it; maybe this weekend)

@mrbean-bremen
Copy link
Member

Sure, thanks!

@mrbean-bremen
Copy link
Member

@chucker - if you don't mind, I will just incorporate your fix manually to have it in for the next release, as it is actually a small change.

@chucker
Copy link
Contributor Author

chucker commented May 26, 2019

Sure, that’s fine!

@mrbean-bremen
Copy link
Member

Thanks!

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

4 participants