CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever 1.0.248.1181

dotnet add package CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever --version 1.0.248.1181
                    
NuGet\Install-Package CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever -Version 1.0.248.1181
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever" Version="1.0.248.1181" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever" Version="1.0.248.1181" />
                    
Directory.Packages.props
<PackageReference Include="CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever --version 1.0.248.1181
                    
#r "nuget: CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever, 1.0.248.1181"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever@1.0.248.1181
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever&version=1.0.248.1181
                    
Install as a Cake Addin
#tool nuget:?package=CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever&version=1.0.248.1181
                    
Install as a Cake Tool

CodeBrix.Platform.Fonts.OpenSans

A redistribution of the Open Sans font family packaged as a CodeBrix-family NuGet library for .NET 10 applications. CodeBrix.Platform.Fonts.OpenSans is a content-files font package for CodeBrix.Platform applications — supplying the Open Sans variable font and its static instances as build-time assets — and is equally usable as a plain content-files NuGet in any .NET 10 project that wants the Open Sans font set. The library has no managed dependencies other than .NET, and is provided as a .NET 10 library and associated CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever NuGet package.

CodeBrix.Platform.Fonts.OpenSans supports applications and assemblies that target Microsoft .NET version 10.0 and later. Microsoft .NET version 10.0 is a Long-Term Supported (LTS) version of .NET, and was released on Nov 11, 2025; and will be actively supported by Microsoft until Nov 14, 2028. Please update your C#/.NET code and projects to the latest LTS version of Microsoft .NET.

Installation

dotnet add package CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever

Note that the NuGet package ID and the assembly name are different - there is no package named plain CodeBrix.Platform.Fonts.OpenSans:

  • NuGet package ID: CodeBrix.Platform.Fonts.OpenSans.ApacheLicenseForever
  • Assembly and content-folder name: CodeBrix.Platform.Fonts.OpenSans - the name that the ms-appx:///CodeBrix.Platform.Fonts.OpenSans/Fonts/... URIs shown below resolve against.

The assembly carries no managed API and nothing to using - everything a consumer uses is a font file path or an MSBuild property. The package has no dependencies beyond .NET itself.

CodeBrix.Platform.Fonts.OpenSans supports:

  • The Open Sans variable font (OpenSans.ttf) covering the full weight axis (300-800) and width axis (75-100) — it has no italic axis; italics come from the static files below — used directly on every platform.
  • 36 static .ttf font files covering the Light/Regular/Medium/SemiBold/Bold/ExtraBold weights in Normal, Italic, Condensed, Condensed-Italic, SemiCondensed, and SemiCondensed-Italic stretches — for platforms that resolve fonts through the static-instance manifest.
  • A .ttf.manifest JSON file that maps font_style / font_weight / font_stretch triples to the matching static font file.
  • A CODEBRIX-DEVELOP.json descriptor that tells CodeBrix.Develop how to wire this font into a generated application and which software-keyboard layouts the package's glyph coverage supports.
  • A buildTransitive MSBuild .targets file (hooking into the CodeBrix.Platform _CodeBrixAddLibraryAssets target) that prunes the redundant static font files at build time on platforms that don't need them, while always keeping the variable OpenSans.ttf available.
  • The CodeBrix .uprimarker file so CodeBrix.Platform build pipelines discover the package as a UPRI-bearing font asset library.

Sample Code

Reference the font from XAML (CodeBrix.Platform app)

<TextBlock Text="Hello, world."
           FontFamily="ms-appx:///CodeBrix.Platform.Fonts.OpenSans/Fonts/OpenSans.ttf" />

Reference a specific static weight

<TextBlock Text="Bold sample"
           FontFamily="ms-appx:///CodeBrix.Platform.Fonts.OpenSans/Fonts/OpenSans-Bold.ttf" />

Set Open Sans as the default text font (CodeBrix.Platform app)

global::CodeBrix.Platform.UI.FeatureConfiguration.Font.DefaultTextFontFamily =
    "ms-appx:///CodeBrix.Platform.Fonts.OpenSans/Fonts/OpenSans.ttf";

Note that the font URI carries no #FamilyName fragment. CodeBrix.Platform strips such a fragment before resolving the font, and leaving it on the value assigned to DefaultTextFontFamily prevents the startup font-manifest preload from finding the manifest.

Script coverage

Open Sans covers every software-keyboard layout CodeBrix.Platform ships except the Georgian and Armenian ones: it has no glyphs for those two scripts, and this package bundles no companion fonts to supply them — see the sibling CodeBrix.Platform.Fonts.Roboto and CodeBrix.Platform.Fonts.Merriweather packages, which do.

Documentation

The NuGet package includes AGENT-README.txt, a complete reference and usage guide written for AI coding agents - point your agent at that file when it is writing code or XAML against this package. It covers the font inventory, the manifest format, weight/style/stretch selection and the script-coverage rules.

Additional sample code and usage examples are available in the CodeBrix.Platform.Fonts.OpenSans.Tests project: https://github.com/ellisnet/CodeBrix.Platform.Fonts.OpenSans/tree/main/tests/CodeBrix.Platform.Fonts.OpenSans.Tests

License

CodeBrix.Platform.Fonts.OpenSans is licensed under the Apache License 2.0 - see the LICENSE file. That covers the library code, the .targets file and the package wrapper.

The Open Sans font files (*.ttf) themselves are licensed under the SIL Open Font License, Version 1.1 — see the bundled OFL.txt file. The combined NuGet package is published under the SPDX expression Apache-2.0 AND OFL-1.1.

For licensing and provenance information about the open source code included in this package, see THIRD-PARTY-NOTICES.txt.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.248.1181 304 9/5/2026
1.0.238.523 142 8/26/2026
1.0.209.261 178 7/28/2026
1.0.181.655 1,401 6/30/2026
1.0.181.249 142 6/30/2026
1.0.165.55 172 6/14/2026
1.0.118 154 4/30/2026