font-family

can't find the name of custom font added to xcode 7

我是研究僧i 提交于 2019-12-02 02:06:52
I am having trouble with getting the name of my custom font. I added font to my project with copy if needed option checked. I added the font name to the info.plist tag Fonts provided by an application. I added the font to Copy Bundle Resources. The font appears in storyboard under custom tab. But when I try to find the name of this font with code, it doesn't work. Really strange because that normally works. What could be the reason for this? Storyboard image of font: Code to find the name programatically: viewDidLoad(){ // there is no PTSans family in the debugger. for family: String in UIFont

Java web 小测验

▼魔方 西西 提交于 2019-12-01 19:45:55
题目要求: 1登录账号:要求由 6到 12位字母、数字、下划线组成,只有字母可以开头;( 1分) 2登录密码:要求显示“• ”或“ *”表示输入位数,密码要求八位以上字母、数字组成。( 1分) 3性别:要求用单选框或下拉框实现,选项只有“男”或“女”;( 1分) 4学号:要求八位数字组成,前四位为“ 2018”开头,输入自己学号;( 1分) 5姓名:输入自己的姓名; 5电子邮箱: 要求判断正确格式xxxx@xxxx.xxxx ;( 1分) 6点击“添加”按钮,将学生个人信息存储到数据库中。( 3分) 7可以演示连接上数据库。( 2分) 1.数据库连接 package zzm; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; /** * 数据库连接工具 * @author Hu * */ public class DBUtil { public static String db_url = "jdbc:mysql://localhost:3306/zzm?useSSL=false"; public static String db_user =

DOM操作

怎甘沉沦 提交于 2019-12-01 18:55:33
一、内容操作 内容操作 1. html(): 获取/设置元素的标签体内容 <a><font>内容</font></a> --> <font>内容</font> 2. text(): 获取/设置元素的标签体纯文本内容 <a><font>内容</font></a> --> 内容 3. val(): 获取/设置元素的value属性值 ------------------------ <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script src="../js/jquery-3.3.1.min.js"></script> <script> $(function () { // 获取myinput 的value值 //var value = $("#myinput").val(); //alert(value); //$("#myinput").val("李四"); // 获取mydiv的标签体内容 //var html = $("#mydiv").html(); //alert(html); //$("#mydiv").html("<p>aaaa</p>"); // 获取mydiv文本内容 //var text = $("#mydiv").text(); //alert(text); $("

css字体相关(font-face, font-family)

a 夏天 提交于 2019-12-01 16:52:54
记录一下近期接触的有关字体的一些经验 一、font-family 平时我们使用css设定字体的话都是使用font-family,如下: html,body { height: 100%; margin: 0; font-family:"Microsoft YaHei",Helvetica,"PingFang SC","Hiragino Sans GB",Arial,sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 12px; overflow: hidden; cursor: default; } font-family其实是一个集合,浏览器会根据用户本地字体从前往后使用对应字体。排在前面的字体在本地不存在,则使用下一个字体。依次类推,都不存在,则会使用系统默认字体(如win7和win10为微软雅黑,xp为宋体)。 再来说一下font-family的值,字体名字一般和字体文件的名字是相同的,如下,而不是属性中出现的名字。 font-family里有一点比较重要,有些字体不使用引号也可识别,但是有些字体就必须使用引号,否则会被判断为错误的value值而使该语句不生效。因此如果你设置字体时,该字体在本地fonts文件夹下明明存在,设定时却不生效

3 CSS字体样式属性

廉价感情. 提交于 2019-12-01 13:22:34
CSS字体样式属性 font-size 字体大小 相对长度单位 说明 em 相对于当前对象内文本的字体尺寸 px 像素(常用) 绝对长度单位 说明 cm 厘米 mm 毫米 pt 点 in 英寸 p { font-size: 14px; } 如果设置成 inherit 表示继承父元素的字体大小值 font-family 字体 font-family属性用于设置字体。网页中常用的字体有宋体、微软雅黑、黑体等 可以同时指定多个字体,中间以逗号隔开,表示如果浏览器不支持第一个字体,则会尝试下一个,直到找到合适的字体 body { font-family: "Microsoft Yahei", "微软雅黑", "Arial", sans-serif } 如果设置成 inherit ,则表示继承父元素的字体 font-weight 字体粗细 值 描述 normal 默认值,标准粗细 bold 粗体 bolder 更粗 lighter 更细 100~900 设置具体粗细,400等同于normal,而700等同于bold inherit 继承父元素字体的粗细值 color 颜色 支持三种颜色值: 十六进制值 如: #FF0000 一个RGB值 如: RGB(255,0,0) 颜色的名称 如: red 来源: https://www.cnblogs.com/shibojie/p/11688165

Internet Explorer: drop down does not display option font family

一曲冷凌霜 提交于 2019-12-01 11:56:25
#select-arial { font-family: Arial; } #select-verdana { font-family: Verdana; } #select-geneva { font-family: Geneva; } #select-sans-serif { font-family: Sans-Serif; } #select-courier { font-family: Courier; } #select-monospace { font-family: Monospace; } #select-georgia { font-family: Georgia; } <select name="font_select"> <option id="select-arial" value="Arial">Arial</option> <option id="select-verdana" value="Verdana">Verdana</option> <option id="select-geneva" value="Geneva">Geneva</option> <option id="select-sans-serif" value="Sans-Serif">Sans-Serif</option> <option id="select-courier"

Set font family in TVML

為{幸葍}努か 提交于 2019-12-01 11:36:21
In my TVML app I am able to set font style properties such as font-size and font-weight using tv-text-style:none, however I am not able to set the font-family property, which seems to be ignored: var Template = function() { return `<?xml version="1.0" encoding="UTF-8" ?> <document> <head> <style> .customText { tv-text-style: none; tv-position: center; color: white; font-size: 40px; font-weight: bold; font-family: Courier; } </style> </head> <paradeTemplate> ... <listItemLockup> <title>Title</title> <relatedContent> <divTemplate> <title class="customText">abcABC</title> </divTemplate> <

third font in font family is significantly larger

ⅰ亾dé卋堺 提交于 2019-12-01 08:21:21
For my website I have chosen to use some pretty obscure fonts in my font family. The most well known font (3rd in family) is Century Gothic, which most computers have. font-family:Tw Cen MT,Gill Sans,Century Gothic,sans-serif; The problem is that 12px font in century gothic is far bigger than a 12px font in Tw Cen MT & Gill Sans. IF a computer falls back on Century Gothic, the fonts will be a mess. I NEED A Jquery solution that says, century gothic will have a font-size of 75% of the normal value. I don't need it to detect fonts. I just need it to say, if century gotchi is being used, make the

博客园的博客美化

亡梦爱人 提交于 2019-12-01 07:20:32
1. 博客皮肤选择:En_summerGarden 2. 页面定制css代码 /*================================================================================>修改页面代码字体<===========*/ .cnblogs_code pre { font-family: Courier New!important; font-size: 16px!important; word-wrap: break-word; white-space: pre-wrap; } .cnblogs_code span { font-family: Courier New!important; font-size: 16px!important; line-height: 1.5!important; } /*================================================================================>修改背景样式<===========*/ #google_ad_c1, #google_ad_c2 {display:none;} .syntaxhighlighter a, .syntaxhighlighter div,

doraemon的python 格式化排版

两盒软妹~` 提交于 2019-12-01 06:28:28
doraemon的python 格式化排版 1765243235 ### 11.5 常用格式化排版 文字文本属性 ```css /*为网页中的文字设置默认字体为微软雅黑*/ body{ font-family:'Microsoft yahei' } /*备选字体*/ body{ font-family:'Microsoft yahei','宋体','黑体' } ``` 网页中的字体一般为16px 字体样式: - normal 默认的,文本设置为普通字体 - italic 如果当前字体的斜体版本可用,那么文本设置为斜体版本;如果不可用,那么就会利用onlique状态来模拟italic。常用 - oblique 将文本设置为斜体的模拟版本,也就是将普通文字倾斜样式应用到文本中。 ```html <head> <meta charset='UTF-8'> <title>字体样式</title> <style type="text/css"> p{ font-style:italic; } i{ font-style:normal; } </style> </head> <body> <p> 普通字体样式 </p> <i> 斜体样式 </i> </body> ``` 字体粗细 font_weight: - narmal - bold - lighter - bolder - 100-900