diff options
| author | 2024-03-28 00:07:51 +0900 | |
|---|---|---|
| committer | 2024-03-28 00:09:01 +0900 | |
| commit | 825e1874e7938607b04920cfa220442f5342a1d6 (patch) | |
| tree | 5bed60c0d447730f5dc7523811ffa520261cf392 | |
| parent | 7e1da21e60f8ed3c07817dc6c4eb80889abb6c0b (diff) | |
Add more comments to the FontFamily.Builder#buildVariableFamily
Bug: 331421459
Test: m docs
Change-Id: Idc5054c0d27b4209698d49a3d18b185ade0505fd
| -rw-r--r-- | graphics/java/android/graphics/fonts/FontFamily.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/fonts/FontFamily.java b/graphics/java/android/graphics/fonts/FontFamily.java index 685fd825d43e..199e9293ad65 100644 --- a/graphics/java/android/graphics/fonts/FontFamily.java +++ b/graphics/java/android/graphics/fonts/FontFamily.java @@ -140,7 +140,11 @@ public final class FontFamily { * value of the supported `wght`axis, the maximum supported `wght` value is used. The weight * value of the font is ignored. * - * If none of the above conditions are met, this function return {@code null}. + * If none of the above conditions are met, the provided font files cannot be used for + * variable font family and this function returns {@code null}. Even if this function + * returns {@code null}, you can still use {@link #build()} method for creating FontFamily + * instance with manually specifying variation settings by using + * {@link Font.Builder#setFontVariationSettings(String)}. * * @return A variable font family. null if a variable font cannot be built from the given * fonts. |