将 Verdana 嵌入动态文本字段中,需要将其设置为粗体 - 我必须购买 Verdana Bold 吗?

发布于 2024-09-19 01:17:14 字数 171 浏览 3 评论 0原文

首先,我没有 Verdana 粗体的副本。它不在我的硬盘上,而且我不知道制作字体的第一件事,所以这是不可能的。

我现在已经搜索了几个小时,似乎经过验证的正确解决方案是将多个版本的字体嵌入到舞台之外。

荒谬的。正确的?无论哪种情况,我都请求所有闪电绝地武士告诉我还有另一种方法吗?我拒绝转向黑暗面。

First off, I don't have a copy of Verdana bold. It's no where on my hd and I don't know the first thing about making fonts so that is out of the question.

I've been searching for a couple of hours now and it seems the tried and true solution is to embed multiple versions of the font off the stage.

Ridiculous. Right? In either case, I am pleading to all you Flash Jedi out there to please tell me there is another way? I refuse to turn to the dark side.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浮萍、无处依 2024-09-26 01:17:14

首先,你不必购买它。其次,这就是 Flex 中的实现方式,因此它可以为您提供一些见解。

@font-face{
src:url('fonts/Verdana.ttf');
font-family:Verdana;/*any name you want actually, you can have it VerdanaBold*/
font-weight:bold;
}

稍后从组件中调用它,假设是一个标签

<s:Label text="Your text here" fontFamily="Verdana"/>

长的答案是我不敢相信你的系统上没有 Verdana,为什么呢?如果您在Office软件甚至记事本字体设置中看到它但不知道如何获取它,假设它是Windows系统,请在“控制面板”>“字体设置”下查看。字体。

First of all, you don't have to buy it. Second, this is how it's done in Flex so it can give you some insight.

@font-face{
src:url('fonts/Verdana.ttf');
font-family:Verdana;/*any name you want actually, you can have it VerdanaBold*/
font-weight:bold;
}

To call it later from a component, let's say a Label

<s:Label text="Your text here" fontFamily="Verdana"/>

The long answer is that I can't believe you don't have Verdana on your system, how come? If you see it in Office software or even in notepad font settings but don't know how to get it, assuming it's a Windows system, look under Control Panel > Fonts.

别靠近我心 2024-09-26 01:17:14

如果您使用 Flash IDE,将其嵌入到舞台之外(任何地方 - 只需要在您的项目中)确实是最好的方法。基本上,如果您有一个设置了字体嵌入的 TextField,则 Flash 仅嵌入基本字体,而忽略其余部分 - 因此,如果您想要带有 的文本,则 Flash 只会嵌入基本字体,而忽略其余字体。在那里的某个地方,必须嵌入粗体字体。

您的系统中可能确实有 Verdana 粗体,也许您只是看不到它(取决于您的系统)。只需尝试创建一个 Verdana TextField 并启用粗体即可。

您还可以将其作为字体资源添加到库中,但它有自己的问题。就功能而言,隐藏文本字段技巧效果最好。

您还可以使用 [embed] 元标记嵌入字体,但如果您使用 IDE,这对您来说是一个更大的蠕虫(因为这意味着从中开始使用 Flex SDK)。

If you're using the Flash IDE, embedding it outside the stage (anywhere - it just need to be on your project) is, indeed, the best way to do it. Basically, if you have a TextField with font embedding set, Flash only embeds the basic font, ignoring the rest - so if you want text with <b> somewhere in there, the bold font has to be embedded.

You probably do have Verdana bold in your system, maybe you just can't see it (depends on your system). Just try creating a Verdana TextField and enabling bold.

You can also have it added to the library as a font asset, but it has problems of its own. Feature wise, the hidden textfield trick works best.

You can also embed fonts with the [embed] meta tag, but that's a bigger can of worms for you if you're working with the IDE (since it means to start using the Flex SDK from it).

晨光如昨 2024-09-26 01:17:14

您可以转到库面板,然后从右上角(单击看起来像小三角形和网格的东西)并选择“新字体”。您可以在其中嵌入粗体 Verdana 并在代码中使用它。

You can go to the library panel and from the top right corner (click the little triangle and grid looking thingy) and choose "New Font". There you can embed bold Verdana and use it in your code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文