Skip to content

Commit

Permalink
Merge pull request #43 from Youssef1313/dev/youssef/opensans
Browse files Browse the repository at this point in the history
feat: Add OpenSans font manifest
  • Loading branch information
agneszitte authored Jul 5, 2024
2 parents 1d302b3 + 8d70bff commit 4fe3729
Show file tree
Hide file tree
Showing 41 changed files with 240 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
220 changes: 220 additions & 0 deletions nuget/OpenSans/Uno.Fonts.OpenSans/Fonts/OpenSans.ttf.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
{
"fonts": [
{
"font_style": "Normal",
"font_weight": 300,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-Light.ttf"
},
{
"font_style": "Italic",
"font_weight": 300,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-LightItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 400,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-Regular.ttf"
},
{
"font_style": "Italic",
"font_weight": 400,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-Italic.ttf"
},
{
"font_style": "Normal",
"font_weight": 500,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-Medium.ttf"
},
{
"font_style": "Italic",
"font_weight": 500,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-MediumItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 600,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-SemiBold.ttf"
},
{
"font_style": "Italic",
"font_weight": 600,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-SemiBoldItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 700,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-Bold.ttf"
},
{
"font_style": "Italic",
"font_weight": 700,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-BoldItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 800,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-ExtraBold.ttf"
},
{
"font_style": "Italic",
"font_weight": 800,
"font_stretch": "Condensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_Condensed-ExtraBoldItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 300,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-Light.ttf"
},
{
"font_style": "Italic",
"font_weight": 300,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-LightItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 400,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-Regular.ttf"
},
{
"font_style": "Italic",
"font_weight": 400,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-Italic.ttf"
},
{
"font_style": "Normal",
"font_weight": 500,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-Medium.ttf"
},
{
"font_style": "Italic",
"font_weight": 500,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-MediumItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 600,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-SemiBold.ttf"
},
{
"font_style": "Italic",
"font_weight": 600,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-SemiBoldItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 700,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-Bold.ttf"
},
{
"font_style": "Italic",
"font_weight": 700,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-BoldItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 800,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-ExtraBold.ttf"
},
{
"font_style": "Italic",
"font_weight": 800,
"font_stretch": "SemiCondensed",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans_SemiCondensed-ExtraBoldItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 300,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-Light.ttf"
},
{
"font_style": "Italic",
"font_weight": 300,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-LightItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 400,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-Regular.ttf"
},
{
"font_style": "Italic",
"font_weight": 400,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-Italic.ttf"
},
{
"font_style": "Normal",
"font_weight": 500,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-Medium.ttf"
},
{
"font_style": "Italic",
"font_weight": 500,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-MediumItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 600,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-SemiBold.ttf"
},
{
"font_style": "Italic",
"font_weight": 600,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-SemiBoldItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 700,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-Bold.ttf"
},
{
"font_style": "Italic",
"font_weight": 700,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-BoldItalic.ttf"
},
{
"font_style": "Normal",
"font_weight": 800,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-ExtraBold.ttf"
},
{
"font_style": "Italic",
"font_weight": 800,
"font_stretch": "Normal",
"family_name": "ms-appx:///Uno.Fonts.OpenSans/Fonts/OpenSans-ExtraBoldItalic.ttf"
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 5 additions & 3 deletions nuget/OpenSans/Uno.Fonts.OpenSans/Uno.Fonts.OpenSans.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<!-- It doesn't harm to keep it compatible with net7.0, so doing so -->
<TargetFramework>net7.0</TargetFramework>
<Authors>Uno Platform</Authors>
<PackageProjectUrl>https://github.com/unoplatform/uno.fonts</PackageProjectUrl>
<RepositoryUrl>https://github.com/unoplatform/uno.fonts</RepositoryUrl>
Expand All @@ -20,7 +21,8 @@

<ItemGroup>
<None Include="../../icon.png" Pack="true" PackagePath="icon.png" />
<None Include="../Uno.Fonts.OpenSans.uprimarker" Pack="true" PackagePath="lib/$(TargetFramework)/" />
<None Include="Fonts/*.ttf" Pack="true" PackagePath="lib/$(TargetFramework)/Uno.Fonts.OpenSans/Fonts/" />
<None Include="../Uno.Fonts.OpenSans.uprimarker" Pack="true" PackagePath="lib/net7.0" />
<None Include="Fonts/*.ttf" Pack="true" PackagePath="lib/net7.0/Uno.Fonts.OpenSans/Fonts/" />
<None Include="buildTransitive/**/*" Pack="true" PackagePath="buildTransitive/" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<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'" />
</Target>
</Project>

0 comments on commit 4fe3729

Please sign in to comment.