font-size

Is it possible to change the console font size in IntelliJ IDEA

元气小坏坏 提交于 2019-12-01 02:06:02
Is it possible to change the console font size in IntelliJ IDEA? I changed the actual text size under Settings > Editor > Font , but "console/terminal" font is too small. I'm using Community Edition 15 Works on every Intellij Version Press Ctrl+Shift+a and search for console font : Select Console Font and the right settings menu will be opened. Intellij Version < 2018 Open Settings -> Editor -> Colors & Fonts -> Console Font You can change font size and colors there but you have to save the Scheme into a custom scheme before you can change the values. I am using the ultimate edition. If you

Increase the size of the fonts used By XCode 4's GUI

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 23:58:10
How can I increase the size of XCode 4's GUI fonts (not the editor, everything else)? On my MBP 17", it's just impossible to read that XXX for hours! Not Xcode specific, but you might try launching Xcode using the resolution independent scaling built into the OS. It's the same thing you find in the Run action of a scheme, as it scale up the entire UI for an application. 来源: https://stackoverflow.com/questions/5442400/increase-the-size-of-the-fonts-used-by-xcode-4s-gui

html-table表格,bgcolor使用

点点圈 提交于 2019-11-30 22:08:52
<table border="0" cellspacing="1" bgcolor="#475669"> <tr bgcolor="white"> <td style="font-size: 17px;">患者姓名:</td> <td>{{formData.patientName}}</td> <td style="font-size: 17px;">性别:</td> <td>{{formData.patientSex}}</td> <td style="font-size: 17px;">年龄:</td> <td>{{birthDateChange(formData.patientBirthdate)}}岁</td> </tr> <tr bgcolor="white"> <td style="font-size: 17px;">家庭住址:</td> <td colspan="3">{{patientData.casePatientAddress}}</td> <!--<td></td>--> <!--<td></td>--> <td style="font-size: 17px;">联系电话:</td> <td>{{patientData.casePatientPhone}}</td> </tr> </table>   外层设置 线条想要的颜色,内层设置白色。 来源: https

Why android gives warning on using size smaller than 12sp?

怎甘沉沦 提交于 2019-11-30 22:05:14
问题 Well, I am developing app for 7 inch tablet, more specially for nexus 7, and in the XML layout file, i get warning Avoid using sizes smaller than 12sp: 11sp if i set the size of any textField to less than 12sp ? I am adding screen shots for more clarity of the problem 回答1: For the default font scaling, 1sp = 1dip = 1/160". A height of 11sp is about 1/15th of an inch, which is pretty tiny. This is a Lint error. You can override it -- press <Ctrl>-<1> , and the quick-fix list menu should give

CSS字体样式属性

拈花ヽ惹草 提交于 2019-11-30 22:05:12
font-size:字号大小 font-size属性用于设置字号,该属性的值可以使用相对长度单位,也可以使用绝对长度单位。 其中,相对长度单位比较常用,推荐使用像素单位px,绝对长度单位使用较少。具体如下: font-family:字体 font-family属性用于设置字体。网页中常用的字体有宋体、微软雅黑、黑体等,例如将网页中所有段落文本的字体设置为微软雅黑,可以使用如下CSS样式代码: p{ font-family:"微软雅黑";} 可以同时指定多个字体,中间以逗号隔开,表示如果浏览器不支持第一个字体,则会尝试下一个,直到找到合适的字体。 技巧 1. 现在网页中普遍使用14px+。 2. 尽量使用偶数的数字字号。ie6等老式浏览器支持奇数会有bug。 3. 各种字体之间必须使用英文状态下的逗号隔开。 4. 中文字体需要加英文状态下的引号,英文字体一般不需要加引号。当需要设置英文字体时,英文字体名必须位于中文字体名之前。 5. 如果字体名中包含空格、#、$等符号,则该字体必须加英文状态下的单引号或双引号,例如font-family: "Times New Roman";。 6. 尽量使用系统默认字体,保证在任何用户的浏览器中都能正确显示。 CSS Unicode字体 在 CSS 中设置字体名称,直接写中文是可以的。但是在文件编码(GB2312、UTF-8 等

why is my truetype font of size 11 rendering different than windows?

自古美人都是妖i 提交于 2019-11-30 21:54:48
To wit: Notepad is opened, the font selected as "Arial, Size 11", the words "this is just a test" carefully entered, a screenshot taken: The following Python code is entered and run: import ImageFont, ImageDraw, Image im = Image.open("c:/textimg.png") #the above image pilfont = ImageFont.truetype("arial.ttf", 11) compimg = Image.new("RGB", im.size, (255, 255, 255)) draw = ImageDraw.Draw(compimg) draw.text((0,0), "this is just a test", (0,0,0), font=pilfont) compimg.save("c:/compimg.png") Yet the result is disappointingly different: Not only is it the wrong size, but it's also slightly shaded,

How to overlay, resize and centre a component on a JPanel?

穿精又带淫゛_ 提交于 2019-11-30 21:15:43
I've spent a while reading and experimenting here, and come up with a few approaches, but not got any of them to work completely yet, so I would like to know what more experienced Swing programmers would do. The main window of my application contains a custom subtype of JPanel, which is used to display an image calculated from a mathematical function. This can take some time to calculate, so while this happens I display a text message and a progress bar superimposed on the middle of the panel. I would like both the text and the progress bar to resize appropriately when the panel is resized,

静态布局、自适应布局、流式布局、响应式布局、弹性布局等的概念和区别

…衆ロ難τιáo~ 提交于 2019-11-30 21:12:47
一、静态布局(Static Layout)即传统Web设计,网页上的所有元素的尺寸一律使用px作为单位。 1、布局特点:不管浏览器尺寸具体是多少,网页布局始终按照最初写代码时的布局来显示。常规的pc的网站都是静态(定宽度)布局的,也就是设置了min-width,这样的话,如果小于这个宽度就会出现滚动条,如果大于这个宽度则内容居中外加背景,这种设计常见与pc端。 2、设计方法:   PC:居中布局,所有样式使用绝对宽度/高度(px),设计一个Layout,在屏幕宽高有调整时,使用横向和竖向的滚动条来查阅被遮掩部分;   移动设备:另外建立移动网站,单独设计一个布局,使用不同的域名如wap.或m.。   在移动端开发中采用静态布局的两种方式:(来自: 流布局与响应式网页设计有什么区别? )  (1)在viewport meta标签上设置width=320,页面的各个元素也采用px作为单位。通过用JS动态修改标签的initial-scale使得页面等比缩放,从而刚好占满整个屏幕。(见 前端开发-web app 变革之rem )  (2)设在viewport meta标签上设置content"width=640,user-scalable=no,页面的各个元素也采用px作为单位。由于640px超出了手机宽度,浏览器会自动缩小页面至刚好全屏。(具体见 content"width=640

Font-Size for Button and Link

浪尽此生 提交于 2019-11-30 20:04:06
I tried this simple html: TEST FONT SIZE</br> <input type="button" value="test bytton" style="font-size:20px"> <a style="font-size:20px">test link</a> and found out that the font size of this button looks bigger than the font size of the link in spite of style. Does anybody know why style works differently for link and for button, and how to make them looks like the same? The font-size is the same. But it looks different because the default page font is different from the default input-field font. Set the font-family on both elements the same and they'll look the same. I usually do: body,

px、em、rem和%的定义

你离开我真会死。 提交于 2019-11-30 20:03:16
1.px(像素) px单位的名称为像素,它是一个固定大小的单元,像素的计算是针对(电脑/手机)屏幕的,一个像素(1px)就是(电脑/手机)屏幕上的一个点,即屏幕分辨率的最小分割。由于它是固定大小的单位,单独用它来设计的网页,如果适应大屏幕(电脑),在小屏幕(手机)上就会很不友好,做不到自适应的效果。 2.em(相对长度单位) em单位用的也比较多,特别是国外;em单位的名称为相对长度单位,它是用来设置文本的字体尺寸的, 相对于父级元素 对象内文本的字体尺寸;如果没有人为设置当前对象内文本的字体尺寸,那么它相对的是浏览器默认的字体尺寸(16px)。 3.rem(css3新增的相对长度单位) rem是css3新增的一个相对长度单位,它的出现是为了解决em的缺点,em可以说是相对于父级元素的字体大小,当父级元素字体大小改变时,又得重新计算。rem出现就可以解决这样的问题, rem只相对于根目录 ,即HTML元素。所以只要在html标签上设置字体大小,文档中的字体大小都会以此为参照标准,一般用于自适应布局。 4.%(百分比) %也很常见,它和em差不多一样,都是相对于父级元素。但%可以在很多属性中使用,比如:width、height、font-size等。而em是用来设置字体大小(font-size)的单位,width、height等属性是没有em单位的。 二、px、em、rem和