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>
查看全文
相关阅读:
缓存架构设计细节二三事
啥,又要为表增加一列属性?
SpringMvc4.x---快捷的ViewController
SpringMvc4.x--@ControllerAdvice注解
SpringMvc4.x--Spring MVC的常用注解
解决svn--Unable to connect to a repository at URL ‘https://xxxxxx’ 问题
或许你不知道的10条SQL技巧
Java 基础-运算符
Java 运算符 % 和 /
Java基础-注释
原文地址:https://www.cnblogs.com/whisht/p/2486425.html
最新文章
Go语言(container介绍)
数据结构——Golang实现堆栈
Go 堆栈的理解
Go语言的序列化与反序列化(binary)
golang中encoding/binary包
Spring:特殊数据类型的属性注入(基于配置文件)
Spring:基于配置文件的创建对象的各种方式
常见的设计模式:单例模式
常用数据结构算法:二叉树的遍历(递归和非递归)
常用数据结构算法:高级排序方式(快速、归并、希尔)
热门文章
常用数据结构算法:简单排序方式(冒泡,选择,插入)
Hibernate 快速上手操作入门
常用数据结构算法:翻转链表(递归和非递归方式)
SpringMVC + Hibernate + MySQL 的简易网页搭建(Control实现篇)
SpringMVC + Hibernate + MySQL 的简易网页搭建(Dao层 实现篇)
说一说vector<bool>
再议C++的性能
58到家数据库30条军规
一分钟掌握数据库垂直拆分
秒杀系统架构优化思路
Copyright © 2011-2022 走看看