font-size

Jquery - Fit text into element with only letterspacing & word-spacing

风格不统一 提交于 2021-01-29 22:16:53
问题 Is there a plugin for this? I have been screening of the internetz and found bigText, Justify, fitText, textFit but they all seem to work with the font-size which I dont want to do. I only want the text to fit inside a element with a defined width. HTML: <div id="title"> <h1>One header that i pretty long</h1> <h2>Sub-header that is shorter</h2> </div> CSS: #title { width: 300px; } h1 { font-size: 3em; } h2 { font-size: 2em; } The problem with the plugins that I've found so far is that the sub

How to make the console font bigger when running a batch?

自闭症网瘾萝莉.ら 提交于 2021-01-28 08:09:51
问题 I have the following batch file which I use to run my Minecraft server: (run.bat) @echo off java -Xmx1G -jar mcserver.jar I looked on many forums, and I'm too lazy to begin studying batch code, so I decided to ask here. I want to insert a passage of code that will set the font size in the console to a certain size (for example, 18px). BUT: I don't want the console to run with big font on every other batch file or cmd prompt opened... only in this file. I appreciate any answers :) I use

Safari / Webkit Animating Font Size is Jumpy

有些话、适合烂在心里 提交于 2021-01-28 01:11:30
问题 Animating font sizes in Firefox has a nice smooth effect, while in Safari (and Chrome but less so) it is jumpy. By jumpy I mean the kerning and rendering on the text does not change smoothly, as if Safari is not able to keep up with the font sizes changing so fast. font size starts at 10px: $('#myel).animate({fontSize:'20px'}, 300); Is this normal behavior and is there some sneaky fix for this? 回答1: I believe this is down to rounding. Both in how font sizes are rendered and in how those fonts

Changing the font size of headers of kableExtra table

廉价感情. 提交于 2021-01-27 13:21:53
问题 I am trying to change the font size of various headers in the following table. library(knitr) library(kableExtra) dt <- mtcars[1:5, 1:6] kable(dt) %>% kable_styling(c("striped", "bordered")) %>% add_header_above(c(" ", "Group 1" = 2, "Group 2" = 2, "Group 3" = 2)) %>% add_header_above(c(" ", "Group 4" = 4, "Group 5" = 2)) %>% add_header_above(c(" ", "Group 6" = 6)) Image of the table from the code above: However, I would like the header group 6 to be far bigger than Group 4 and 5 and groups 1

CSS Not using correct font-size

风格不统一 提交于 2021-01-25 07:28:21
问题 When I open the webpage in Chrome the first card-text div uses the font-size of 22px but the second card-text div indicates a font-size of 22px but uses a font-size of 13.75px. Both divs indicate that the same class is being used: @media screen and (min-width: 350px) and (orientation: portrait). I´m unable to find any solution to what might cause this problem. I hope someone can give me some direction to where I could look for this problem... .card-text { color: var(--standard-text-color);

CSS Not using correct font-size

强颜欢笑 提交于 2021-01-25 07:28:08
问题 When I open the webpage in Chrome the first card-text div uses the font-size of 22px but the second card-text div indicates a font-size of 22px but uses a font-size of 13.75px. Both divs indicate that the same class is being used: @media screen and (min-width: 350px) and (orientation: portrait). I´m unable to find any solution to what might cause this problem. I hope someone can give me some direction to where I could look for this problem... .card-text { color: var(--standard-text-color);

Convert pixel size to point size for fonts on multiple platforms

情到浓时终转凉″ 提交于 2021-01-21 10:31:29
问题 I need a way to translate point size and pixel size between multiple platforms. I have a Qt application that must run on multi-platform, including an embedded Linux on a type of tablet. It is expected that users can save files created by the application, on a desktop (either windows or linux) and open on the custom device. The data consists of drawings, and text - QGraphicsItem s on a QGraphicsScene . Some text items are "rich text", so we can change font on fragments of text. For normal text

GetTextMetrics returning different maximum and average character width for Courier New

橙三吉。 提交于 2020-12-26 10:25:42
问题 I'm maintaining an application using Borland C++ Builder 6 running on Windows 7. The application is incorrectly drawing text using font Courier New because each letter is being slighty cut off. The issue is when calling the method GetTextMetrics because it is filling the TEXTMETICS struct with differing tmAveCharWidth and tmMaxCharWidth values. The application then uses tmAveCharWidth to calculate character width with is wrong because that value it can be less than tmMaxCharWidth. That issue

How to make font-size relative to parent div?

左心房为你撑大大i 提交于 2020-12-02 03:15:40
问题 I want text inside my div to remain same size in % percentage ratio to a parent div. I.E. I want my text to have font-size of 50% of parents div width. So when page size is changing, text always remains the same size in % . Here Is what I'm talking about: .counter-holder{ display: block; position: absolute; width:90%; height:20%; top: 70%; left: 50%; /* bring your own prefixes */ transform: translate(-50%, -50%); } .counter-element-box{ position:relative; vertical-align: text-top; border