在涂鸦中应用样式 [英] Apply a style in scribble

查看:43
本文介绍了在涂鸦中应用样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下 style 应该将颜色更改为红色(使用 color-property:

I have the following style which should change the color to red (using color-property:

(define red
  (style #f
         (list (color-property "red"))))

如何将这种样式应用于文本中的单词.假设我希望 WARNING!!! 显示为红色.

How can I apply that style to a word in my text. Say I want WARNING!!! to appear in red.

推荐答案

您可以使用 elem 将样式应用于一段文本.

You can use elem to apply a style to a piece of text.

因此,您的文本可能如下所示:

So, your text could look like this:

@elem[#:style red]{WARNING!!!} This is a warning.

这篇关于在涂鸦中应用样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆