Skip to content

Commit

Permalink
Merge pull request #44 from Youssef1313/patch-1
Browse files Browse the repository at this point in the history
fix: Fix OpenSans targets
  • Loading branch information
jeromelaban authored Jul 8, 2024
2 parents 4fe3729 + 707280b commit afec72c
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<Project>
<Target Name="UnoRemoveUnusedOpenSans" AfterTargets="_UnoAddLibraryAssets">
<!-- Static font files contain dash in the name, so that's what we remove. -->
<!-- For platforms that already support variable fonts, we remove the static font files. -->
<_AllChildProjectItemsWithTargetPath
Remove="$(MSBuildThisFileDirectory)..\..\lib\net7.0\Uno.Fonts.OpenSans\Fonts\**-**.ttf"
Condition="'$(SupportsFontManifest)'!='true'" />

<!-- The variable font file is exactly named OpenSans.ttf -->
<!-- For platforms that don't support variable fonts, we remove that file -->
<_AllChildProjectItemsWithTargetPath
Remove="$(MSBuildThisFileDirectory)..\..\lib\net7.0\Uno.Fonts.OpenSans\Fonts\OpenSans.ttf"
Condition="'$(SupportsFontManifest)'=='true'" />
<ItemGroup>
<!-- Static font files contain dash in the name, so that's what we remove. -->
<!-- For platforms that already support variable fonts, we remove the static font files. -->
<_AllChildProjectItemsWithTargetPath
Remove="$(MSBuildThisFileDirectory)..\..\lib\net7.0\Uno.Fonts.OpenSans\Fonts\**-**.ttf"
Condition="'$(SupportsFontManifest)'!='true'" />

<!-- The variable font file is exactly named OpenSans.ttf -->
<!-- For platforms that don't support variable fonts, we remove that file -->
<_AllChildProjectItemsWithTargetPath
Remove="$(MSBuildThisFileDirectory)..\..\lib\net7.0\Uno.Fonts.OpenSans\Fonts\OpenSans.ttf"
Condition="'$(SupportsFontManifest)'=='true'" />
</ItemGroup>
</Target>
</Project>

0 comments on commit afec72c

Please sign in to comment.