From 3fe089c00c1feed1463ae2bf67135f1d724f6544 Mon Sep 17 00:00:00 2001 From: WangJiazhen Date: Mon, 4 Sep 2023 17:07:56 +0800 Subject: [PATCH] add support vp in font. Signed-off-by: WangJiazhen Change-Id: Ic219f5e0e7f84416ca688d793113a567c1068c9c --- .../figures/zh-cn_image_0000001193872488.png | Bin 2596 -> 18206 bytes .../arkui-ts/ts-canvasrenderingcontext2d.md | 10 ++++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001193872488.png b/zh-cn/application-dev/reference/arkui-ts/figures/zh-cn_image_0000001193872488.png index 45be809bdb14e8badfaac2dc8e2486864d29f763..ff0157999682880a2cfcb692e2fdc20f0053cceb 100644 GIT binary patch literal 18206 zcmV)OK(@b$P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!~g&e!~vBn4jTXfMzcvoK~#8N?R^QH zT~&Sm_uY5jHhZ?oz7di@fP@5sK-f3g6qHp!5TsDIV!>Kvttf8ozZFr$TC{4_)*@&H z6%a*4KnT0+fdoiG_Sxs{_x!)#-+6EH7$!)NnKJ#nUvlQ&d-mmfe#<%M-WPK&=1`|P zjUoyv*E-c{)KDF?bsBY42W_239o0cwr%^|B(AH_xQ602(8g*0$ZJkCP)j?aQQAc&q z)@jty2!U3cZbP||pf_69NY$rKe<_W?HZHSw+n5`%NPqnOun^0RSazT$%Bif{=2pvA zyg1{Pc|V->snc6QBdZ=b0zz&i>5UdwKY}r8XoL>Ts0hxFsDdEle6?J5d#kWLz^~># zR9Ut8$bWnCt<(P&jUZ@;B7sCDqLZ;^{vy}m4*+rW?0p(sL^j*pcN^sT9Yb< zMAc{m&()hZNEW}6;ZVzM=2eYTr_n&e2wDO*7Oy;4to>?913;;U^T~N`8;cDB&#TfX zp4&cn*-Ar&w1F^?p@=yJDtD0I0M+`7wyWei4HNwZpxxF$ix?(=#44QD5jYk_f0T|_ zg3rS3F@`9r_*b*yV-Wa3S9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qMob5-T!Y@CzpMl5;-MuN|bA5xVphrBd0`8iJTHS)frsX$z^Y+L{5pE z66IPMu5NJE$tjUjBBw-7bp}^;a@pG{ky9e4M7dUms~cQ(a!TZs$SILioxxR|T=sTK zIPSxoDw-Da!TY>XK+;~m%W`5IVBpf68#sAr${_d+0l6b0000- 'butt':线端点以方形结束。
- 'round':线端点以圆形结束。
- 'square':线端点以方形结束,该样式下会增加一个长度和线段厚度相同,宽度是线段厚度一半的矩形。
默认值:'butt'
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | [lineJoin](#linejoin) | CanvasLineJoin | 指定线段间相交的交点样式,可选值为:
- 'round':在线段相连处绘制一个扇形,扇形的圆角半径是线段的宽度。
- 'bevel':在线段相连处使用三角形为底填充, 每个部分矩形拐角独立。
- 'miter':在相连部分的外边缘处进行延伸,使其相交于一点,形成一个菱形区域,该属性可以通过设置miterLimit属性展现效果。
默认值:'miter'
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | [miterLimit](#miterlimit) | number | 设置斜接面限制值,该值指定了线条相交处内角和外角的距离。
默认值:10
从API version 9开始,该接口支持在ArkTS卡片中使用。 | -| [font](#font) | string | 设置文本绘制中的字体样式。
语法:ctx.font='font-size font-family'
- font-size(可选),指定字号和行高,单位只支持px。
- font-family(可选),指定字体系列。
语法:ctx.font='font-style font-weight font-size font-family'
- font-style(可选),用于指定字体样式,支持如下几种样式:'normal','italic'。
- font-weight(可选),用于指定字体的粗细,支持如下几种类型:'normal', 'bold', 'bolder', 'lighter', 100, 200, 300, 400, 500, 600, 700, 800, 900。
- font-size(可选),指定字号和行高,单位支持px、vp。使用时需要添加单位。
- font-family(可选),指定字体系列,支持如下几种类型:'sans-serif', 'serif', 'monospace'。
默认值:'normal normal 14px sans-serif'
从API version 9开始,该接口支持在ArkTS卡片中使用。 | +| [font](#font) | string | 设置文本绘制中的字体样式。
语法:ctx.font='font-size font-family'
- font-size(可选),指定字号和行高,单位支持px和vp。
- font-family(可选),指定字体系列。
语法:ctx.font='font-style font-weight font-size font-family'
- font-style(可选),用于指定字体样式,支持如下几种样式:'normal','italic'。
- font-weight(可选),用于指定字体的粗细,支持如下几种类型:'normal', 'bold', 'bolder', 'lighter', 100, 200, 300, 400, 500, 600, 700, 800, 900。
- font-size(可选),指定字号和行高,单位支持px、vp。使用时需要添加单位。
- font-family(可选),指定字体系列,支持如下几种类型:'sans-serif', 'serif', 'monospace'。
默认值:'normal normal 14px sans-serif'
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | [textAlign](#textalign) | CanvasTextAlign | 设置文本绘制中的文本对齐方式,可选值为:
- 'left':文本左对齐。
- 'right':文本右对齐。
- 'center':文本居中对齐。
- 'start':文本对齐界线开始的地方。
- 'end':文本对齐界线结束的地方。
ltr布局模式下'start'和'left'一致,rtl布局模式下'start'和'right'一致·。
默认值:'left'
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | [textBaseline](#textbaseline) | CanvasTextBaseline | 设置文本绘制中的水平对齐方式,可选值为:
- 'alphabetic':文本基线是标准的字母基线。
- 'top':文本基线在文本块的顶部。
- 'hanging':文本基线是悬挂基线。
- 'middle':文本基线在文本块的中间。
- 'ideographic':文字基线是表意字基线;如果字符本身超出了alphabetic基线,那么ideograhpic基线位置在字符本身的底部。
- 'bottom':文本基线在文本块的底部。 与ideographic基线的区别在于ideographic基线不需要考虑下行字母。
默认值:'alphabetic'
从API version 9开始,该接口支持在ArkTS卡片中使用。 | | [globalAlpha](#globalalpha) | number | 设置透明度,0.0为完全透明,1.0为完全不透明。
从API version 9开始,该接口支持在ArkTS卡片中使用。 | @@ -273,7 +273,7 @@ struct MiterLimit { struct Fonts { private settings: RenderingContextSettings = new RenderingContextSettings(true) private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.settings) - + build() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { Canvas(this.context) @@ -282,8 +282,10 @@ struct Fonts { .backgroundColor('#ffff00') .onReady(() =>{ this.context.font = '30px sans-serif' - this.context.fillText("Hello World", 20, 60) - }) + this.context.fillText("Hello px", 20, 60) + this.context.font = '30vp sans-serif' + this.context.fillText("Hello vp", 20, 100) + }) } .width('100%') .height('100%') -- GitLab