Skip to content

Commit

Permalink
fix: Fix OpenSans targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Jul 8, 2024
1 parent 4fe3729 commit 707280b
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 707280b

Please sign in to comment.