Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#1,143 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
android, csharp

Línea de trabajo

El fallo apunta a Microsoft.Maui.Resizetizer.After.targets en la línea 568, mientras que la reproducción utiliza OpenSans-VariableFont_wdth,wght.ttf en ConfigureFonts. Empieza reproduciendo el error de MSBuild con esa fuente variable; después inspecciona cómo el target gestiona el nombre de archivo y verifica el resultado con una compilación limpia.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
C#
Estrellas
3.8k
Forks
401
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CommunityToolkit/dotnet

Todos los issues de CommunityToolkit/dotnet

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.