FontStyle 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
FontStyle() |
建立具有特定粗細和斜體字的 FontStyle |
FontStyle(Int32, FontSlant) |
建立具有特定粗細和斜體字的 FontStyle |
FontStyle()
建立具有特定粗細和斜體字的 FontStyle
[Android.Runtime.Register(".ctor", "()V", "", ApiSince=29)]
public FontStyle ();
- 屬性
備註
的 android.graphics.fonts.FontStyle.FontStyle(int, int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
FontStyle(Int32, FontSlant)
建立具有特定粗細和斜體字的 FontStyle
[Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=29)]
public FontStyle (int weight, Android.Graphics.Fonts.FontSlant slant);
[<Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=29)>]
new Android.Graphics.Fonts.FontStyle : int * Android.Graphics.Fonts.FontSlant -> Android.Graphics.Fonts.FontStyle
參數
- weight
- Int32
加權值
- slant
- FontSlant
斜值
- 屬性
備註
建立具有特定粗細和斜體字的 FontStyle
<table>thead><tr><th align=“center”>Value</th><th align=“center”>Name</<>th th align=“center”>Android Definition</th></tr></thead><tbody><tr><td align=“center”>100</td td><align=“center”>Thin</<>td td align=“center”>FontStyle#FONT_WEIGHT_THIN
</td<>/tr<>><td align=“center”<200/td td<>align=“center”>Extra Light(Ultra Light)</td><td align=“center”>FontStyle#FONT_WEIGHT_EXTRA_LIGHT
</td<>/tr>><<td align=“center”>300/<>><td td align=“center”Light/><td td align=“center”<FontStyle#FONT_WEIGHT_LIGHT
>/td></tr<<>>td align=“center”>400<</td td><align=“Center”Normal(>Regular)</td<><>td align=“center”><FontStyle#FONT_WEIGHT_NORMAL
/td/tr><td><<> align=“center”>500/td<>td align=“>center”Medium</><td td align=“center”/td></tr><tr<>td> align=“center”<FontStyle#FONT_WEIGHT_MEDIUM
>600<</td<>td align=“center”>Semi Bold(Demi Bold)</td><td align=“center”><FontStyle#FONT_WEIGHT_SEMI_BOLD
/td<>/tr><tr><td align=“center”>700</td td<>align=“center”>Bold/td<>td align=“center”FontStyle#FONT_WEIGHT_BOLD
></<>td/tr tr>><<td align=“center”800/td<>td align=“>center”>Extra Bold<“</td td align=”center“><FontStyle#FONT_WEIGHT_EXTRA_BOLD
/td><></tr<>tr><td align=”center“>900<</td><td align=“center”>Black (Heavy)</td td<>align=“center”><FontStyle#FONT_WEIGHT_BLACK
/td></tr></tbody>
的 android.graphics.fonts.FontStyle.FontStyle(int, int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。