zoukankan
html css js c++ java
Flex 宋体、黑体、楷体、仿宋字体样式
s|Label { font-family: FangSong_GB2312; /*SimSun,SimHei,KaiTi_GB2312,FangSong_GB2312,*/ /*以上四种字体默认使用的是本地设备字体,无法开启抗锯齿功能,字体边缘有毛边*/ backgroundColor: #000000; color: #FF0000; fontSize: 128px; line-height:128px; letter-spacing:0px; /*fontStyle: italic;*/ /*fontWeight: bold;*/ /*textDecoration: underline;*/ }
测试页面
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <!--<fx:Style source="ydp.css"/>--> <fx:Script> <![CDATA[ protected function button1_clickHandler(event:MouseEvent):void { // TODO Auto-generated method stub this.lbText.setStyle("fontFamily", "SimSun"); } protected function button2_clickHandler(event:MouseEvent):void { // TODO Auto-generated method stub this.lbText.setStyle("fontFamily", "SimHei"); } protected function button3_clickHandler(event:MouseEvent):void { // TODO Auto-generated method stub this.lbText.setStyle("fontFamily", "FangSong_GB2312"); } protected function button4_clickHandler(event:MouseEvent):void { // TODO Auto-generated method stub this.lbText.setStyle("fontFamily", "KaiTi_GB2312"); } ]]> </fx:Script> <fx:Declarations> <!-- 将非可视元素(例如服务、值对象)放在此处 --> </fx:Declarations> <s:Label id="lbText" x="96" y="67" text="低碳交通 绿色通行" width="512" height="256" backgroundColor="#000000" color="#FF0000" fontSize="128" lineHeight="128" /> <s:Button x="4" y="3" label="宋体" click="button1_clickHandler(event)" /> <s:Button x="82" y="3" label="黑体" click="button2_clickHandler(event)"/> <s:Button x="167" y="3" label="仿宋" click="button3_clickHandler(event)"/> <s:Button x="245" y="3" label="楷体" click="button4_clickHandler(event)"/> </s:Application>
查看全文
相关阅读:
vc生产垃圾清理
完整的.h宏定义
vs 2017 boost 安装目录 非安装
cdlinux
TryEnterCriticalSection
go get 升级所有
delphi win7 and high path
本机激活Qemu网络配置 之桥接 win 10 2019 LTSC
archlinux alsa安装,音量设置和音量信息保存
windows搭建gcc开发环境(msys2) objdump
原文地址:https://www.cnblogs.com/whisht/p/2486425.html
最新文章
jenkins docker项目
wsl ubuntu vnc
vs编译obj给delphi用 遇到api解决方法
windows 10 wsl ubuntu openssl windows
openssl build MSYS2
ai,cloud
firefox
C的结构体与Delphi中的记录类型
Delphi Dll 消息处理 Dll
delphi的取整函数round、trunc、ceil和floor
热门文章
nas?
msysm2 拉取配置
linux 下制作U启动
福利win10专业工作站版激活密钥「测试可用」密钥:
Chrome 离线安装包
arch linux install
Arch Linux 天坑
error: failed to commit transaction (conflicting files) curl: /usr/bin/curl exists in filesystem
msys2 使用指定boost
cmake 指定输出目录
Copyright © 2011-2022 走看看