語言

FontStyle 建構函式

定義

多載

名稱 Description
FontStyle()

建立特定粗細與斜體字型

FontStyle(Int32, FontSlant)

建立特定粗細與斜體字型

FontStyle()

建立特定粗細與斜體字型

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=29)]
public FontStyle();
屬性

備註

Java 文件 android.graphics.fonts.FontStyle.FontStyle(int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

FontStyle(Int32, FontSlant)

建立特定粗細與斜體字型

[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

斜率值

屬性

備註

建立特定粗細與斜體字型

<table><thead><tr><th align=“center”>Value</th><th align=“center”>Name</th><th align=“center”>Android Definition</th><></thead><tbody><tr><td align=“center”>100</td><td align=“center”Thin>/td<>td align=“center”<>FontStyle#FONT_WEIGHT_THIN</td></tr><tr td><align=“center”200/td><td 對齊=“中心”>Extra Light(超輕)</td><td 對齊=“center”><>/tdFontStyle#FONT_WEIGHT_EXTRA_LIGHT</tr><tr td><align=“center”>300</td><td align=“center”light/td><td align=“center”><></>tdFontStyle#FONT_WEIGHT_LIGHT</tr><tr><td align=“center”>400</td><td align=“center”>normal(常規)</td><><TD 對齊=「Center」>FontStyle#FONT_WEIGHT_NORMAL</td></tr><TR><TD 對齊=「Center」>500</td><TD 對齊=「Center」>medium</td><td align=「center」>FontStyle#FONT_WEIGHT_MEDIUM</td></tr><tr td><align=“center”600/td td align=“center”>600</td><td align=“center”> 半粗體(半粗體)</td><td align=“center”/td>FontStyle#FONT_WEIGHT_SEMI_BOLD/tr<><><TR>TD 對齊=“Center”700<>/td<>TD align=“center”<粗體>/td<>td align=“center”<>FontStyle#FONT_WEIGHT_BOLD/td<>/tr<>tr td<>align=“center”<800>/td<>td align=“center”<Extra Bold (Ultra Bold)>/td<>td align=“center”<>FontStyle#FONT_WEIGHT_EXTRA_BOLD/td<>/tr<>tr td<>align=“center”<900>/td<><td align=“中心”黑色>(重型)</td><td align=“中心”/td>FontStyle#FONT_WEIGHT_BLACK/<><tr></tbody>

Java 文件 android.graphics.fonts.FontStyle.FontStyle(int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於