import { Panel, Group, scroller, vlayout, layoutConfig, LayoutSpec, Input, Gravity, log, input, text } from "doric";
import { title } from "./utils";
@Entry
class TextDemo extends Panel {
build(root: Group) {
scroller(
vlayout(
[
title("Text Demo"),
text({
text: "This is normal text",
}),
textSize: 20,
textSize: 30,
text: "This is bold text",
fontStyle: "bold",
fontStyle: "bold"
text: "This is italic text",
fontStyle: "italic"
text: "This is bold_italic text",
fontStyle: "bold_italic"
text: "This is Icon Font text \ue631",
font: 'iconfont/iconfont.ttf'
],
{
space: 10,
layoutConfig: layoutConfig().most().configHeight(LayoutSpec.FIT)
}
),
layoutConfig: layoutConfig().most()
).in(root)