Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Resizer: variable font files: unable to load valid file names

オープン
#1,143 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, csharp

調査の方向性

この失敗は568行目の Microsoft.Maui.Resizetizer.After.targets を指しています。一方、再現では ConfigureFonts で OpenSans-VariableFont_wdth,wght.ttf を使用しています。まず、この可変フォントで MSBuild エラーを再現し、次に target がファイル名をどのように処理するかを調べ、クリーンビルドで結果を確認します。

索引モデルが issue の本文から書いたものです。

説明

bug :bug:
Describe the bug

When you download font from https://fonts.google.com/specimen/Open+Sans
you have the choice to use a "variable" font file.

"variable" font files contains alternative axes. Foe ex:
wdth
wght
This is more practical than to use many static font files to get BOLD, MEDIUM etc ...

Both android 12+ and iOS 11+ support variable font files.

Example of a valid file name:
OpenSans-Italic-VariableFont_wdth,wght.ttf

When you add that file to the Fonts folder, resizer crashes.

1>Microsoft.Maui.Resizetizer.After.targets(568,17): Error MSB4186 : Invalid static method invocation syntax: "[System.IO.Path]::GetFileName(obj\Debug\net10.0-android\android-x64\resizetizer\f\OpenSans-VariableFont_wdth,wght.ttf)". Method 'System.IO.Path.GetFileName' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(`a`, `b`)). Check that all parameters are defined, are of the correct type, and are specified in the right order.

When you rename the file, resizer continues to crash. Until your clean and rebuild.

Regression

No response

Steps to reproduce

You can download the font "OpenSans" on google font.
Both android 12+ and iOS 11+ support variable font files.

        var builder = MauiApp.CreateBuilder();
        builder
            .UseMauiApp<App>()
            .UseMauiCommunityToolkit()
            .ConfigureFonts(fonts =>
            {
                fonts.AddFont("OpenSans-VariableFont_wdth,wght.ttf", "OpenSans");
            });
``



### Expected behavior

don't crash :)

### Screenshots

_No response_

### IDE and version

Rider

### IDE version

2025.3.0.1

### Nuget packages

- [ ] CommunityToolkit.Common
- [ ] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [ ] CommunityToolkit.Mvvm (aka MVVM Toolkit)

### Nuget package version(s)

10.0.10

### Additional context

- OS: Window 11
- Target: maui android 10
- VS 2026


### Help us help you

No, just wanted to report this
主要言語
C#
スター
3.8k
フォーク
403
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommunityToolkit/dotnet のほかの issue

CommunityToolkit/dotnet の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。