Skip to content

Commit

Permalink
fix: Font#providersList always being empty, rename to providers
Browse files Browse the repository at this point in the history
  • Loading branch information
radstevee committed Jan 25, 2025
1 parent 66cfcc6 commit a2de40b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
org.gradle.caching=true
org.gradle.parallel=true

packedVersion=1.0.0
packedVersion=1.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class Font private constructor(
/**
* All font providers.
*/
public val providersList: @UnmodifiableView List<FontProvider> = _providers.toList()
public val providers: @UnmodifiableView List<FontProvider> get() = _providers.toList()

/**
* Adds a new font provider.
Expand All @@ -72,7 +72,7 @@ public class Font private constructor(
val unresolvedAssets = mutableListOf<Path>()
val fallbackAssets = mutableListOf<Pair<Path, Path>>()

providersList.forEach { provider ->
providers.forEach { provider ->
when (provider) {
is FontProvider.Bitmap -> {
val assetExists = pack.assetResolutionStrategy.getTexture(provider.key)?.exists() ?: false
Expand Down

0 comments on commit a2de40b

Please sign in to comment.