Repository navigation
moved font provider and font metric users to local context #35430
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
Open
alexpavlov96
wants to merge
11
commits into
musescore:main
Choose a base branch
from
alexpavlov96:fonts_context
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+336
−263
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f7f8ce7
fontsprovider, fontsdatabase are using local context
alexpavlov96 bb250e0
engravingfontprovider consumers use local context
alexpavlov96 78ff40e
fontmetrics consumers use local context
alexpavlov96 43e82ea
storing default cap height as fixed number
alexpavlov96 829edc9
tests are moved to local context
alexpavlov96 3faa305
fixed build without qt
alexpavlov96 d6d4681
painters take the context of the score
alexpavlov96 ce6115c
video writer uses context of notation
alexpavlov96 303b2d4
customize kit dialog builds notehead icons after it gets its context
alexpavlov96 f83e65d
updated the framework
alexpavlov96 0d6cf9e
engraving font keeps its font provider alive until destruction
alexpavlov96 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| [submodule "muse_framework"] | ||
| path = muse | ||
| url = https://github.com/musescore/muse_framework.git | ||
| url = https://github.com/alexpavlov96/muse_framework.git | ||
| branch = alex/fonts-context | ||
| [submodule "muse_deps"] | ||
| path = muse_deps | ||
| url = https://github.com/musescore/muse_deps.git | ||
Submodule muse
updated
95 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -279,7 +279,7 @@ class Score : public EngravingObject, public muse::Contextable | |
| DECLARE_CLASSOF(ElementType::SCORE) | ||
|
|
||
| muse::GlobalInject<class IEngravingConfiguration> configuration; | ||
| muse::GlobalInject<class IEngravingFontsProvider> engravingFonts; | ||
| muse::ContextInject<class IEngravingFontsProvider> engravingFonts = { this }; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This possibly doesn't compile, at least not in non-unity build; should be moved to the constructor in .cpp, like the other ContextInjects here |
||
| muse::ContextInject<class IEngravingContextConfiguration> contextConfiguration; | ||
| muse::ContextInject<class IEngravingElementsProvider> elementsProvider; | ||
| muse::ContextInject<class IPaletteScoreProvider> paletteScoreProvider; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore the canonical submodule URL.
The submodule check rejects
https://github.com/alexpavlov96/muse_framework.gitand requireshttps://github.com/musescore/muse_framework.git. This change makes the CI submodule check fail and blocks validation. Restore the official URL, and keepalex/fonts-contextonly if that branch exists in the official repository.Proposed fix
Committable suggestion
Source: Pipeline failures