font-size

Text size is different in IE and Firefox

戏子无情 提交于 2019-12-12 09:04:56
问题 Why is a text slightly bigger (wider) in IE than in Firefox? Example (on the top is how IE renders the text, bottom is FF): Image The text declared in CSS as Arial 16px. I know that there is a anti-aliasing in IE but it should not make the font bigger IMO. Is it the case here? It breaks my design, can I do anything about it other than decreasing the font size? Thanks! 回答1: If you absolutely must have a pixel-perfect design in all browsers (not recommending it; just use images for those parts)

Swift 3 - Adjust Font Size to Fit Width, Multiple Lines

心已入冬 提交于 2019-12-12 08:36:51
问题 I have a UILabel and it is set to 42.0 pt font, and the width of the label is set using autoconstraints based on factors other than the label itself (aka the things to the right and left of the label determine the label's width). I would like to auto-adjust the font size to fit the width of the label, however also break to two lines when it can. Similar to this: I know you can adjust the font size to fit the width of the label, but only when the number of lines is set to 1. How would I

changing the font size according to each iPhone size

半腔热情 提交于 2019-12-12 07:57:11
问题 is there any way to changing/auto resizing the font size according to the different iPhone screen as when i change the font size, the font size applied to other phone size as well which is too big. My Current Phone size is iPhone 6s plus (5.5 inch) 回答1: Please use size classes to support different font size for different screens. Here is good tutorial about using size classes. adaptive-layout-tutorial 回答2: I ran in to a similar issue. I suggest to use this library: https://github.com/hamiz

How to use a different coordinate system in WPF? (scaling only)

流过昼夜 提交于 2019-12-12 07:55:07
问题 (Let me give you some context) I am currently designing an application that is supposed to generate a printable A4 page based on some data. Naturally, the device independent pixels of WPF (96 pixels/inch) are not a very natural unit of measurement in the paper world. Something like millimetres would be more appropriate. So I got my calculator out and arrived at a scaling factor of something around 3.779. It turns out that simply slapping everything that's supposed to go on the page in a

IE8 font-size toggles on :hover - Japanese lang only

十年热恋 提交于 2019-12-12 07:53:03
问题 I have a page that is multi lingual and I have an issue with the Japanese version only. For some reason in IE8, when I hover over an element, a sibling's font-size will increase/decrease. Even stranger, is that this doesn't happen on every hover, sometimes I cannot reproduce straight away, I need to keep hovering over different elements in the same area of the page. Eventually this bug will rear its ugly head. This bug only occurs on the Japanese page, all other languages seem to be fine.

Reset font-size:0 doesn't work with 'em' unit

橙三吉。 提交于 2019-12-12 06:05:40
问题 I have a parent element that sets the font-size to 0 (zero) and its child that restore the value .parent { font-size: 0; } .child { font-size: 1em; /* font-size: 16px; */ } Using em it doesn't work. Using px as unit makes the text appear again instead. Can anybody explain me why? 回答1: Yes, it's normal. Because em it's a relative meassure. If you think in what are you making, you are making this: 0 * 1 = 0 So if you reset to 0 you'll obtain forever a zero value. You need to use rem (root em)

Font Size Changing with Refresh

核能气质少年 提交于 2019-12-12 04:09:42
问题 When I initially load my website the font sizes are all normal, but when I hit refresh the size almost doubles, and does not go back to normal. I've checked changing the font size using Ctrl+ and Ctrl- That changes the font back to a normal size (90% or 110% of the default size). Everything validates. http://mylivingspacefinder.com/ ======Added from author's comment====== Here's the text-size rules: h1 { .fontSize(10); } h2 { .fontSize(4); } body { .fontSize(2); } .fontSize(@sizeValue) {

JFreeChart Text Annotations not Working?

守給你的承諾、 提交于 2019-12-12 01:39:46
问题 I seem to be getting problems with test annotations in JFreeChart XYPlot. I can set a text annotation as follows XYTextAnnotation textAnnotaion = new XYTextAnnotation(description, xMid, yMid); plot.addAnnotation(textAnnotaion); I can also rotate the text by adding textAnnotaion.setRotationAngle(90.0); But if I try to change the font type/size or colour it doesn't seem to work textAnnotaion.setFont(new Font("Tahoma", Font.BOLD, 20)); textAnnotaion.setPaint(new Color(255, 255, 255, 15)); The

PHP include text file and format

霸气de小男生 提交于 2019-12-11 17:42:35
问题 I have a simple text file. The file name is kpop.txt - What I want to do is include the contents of the file in a webpage. I am using php for includes (header / footer stuff). I would like the contents of the kpop.txt file to remain formatted similar to it's current form. The only real difference that I would like to make is to increase the font size. I am currently using <?php include("kpop.txt"); ?> I have also tried <pre> <font size ="12"> <?php include("kpop.txt"); ?> </font> </pre> What

SVG textpath click radius too high when font-size below 1px

元气小坏坏 提交于 2019-12-11 16:46:26
问题 I have created some rivers in D3.js and would like to have them clickable . So I created an example jsfiddle.net/kwoxer/5uc17jwr/19/. There you can see that the mouseover of the rivers are overall fine. But the issue is when the font-size is getting below 1px (e.g. River 9 and River 10) it's not correct anymore. Somehow then the mouseover is buggy and the radius is way too high then. So below font-size 1px you can actually move the mouse away from the text and the river text is still