fontsize

Second choice font in HTML

This might be slightly basic. Sorry for that but I was wondering if it is possible that the second choice font we specify in HTML (using font/font-family) can be of a different font-size. Eg. Use Lucida Grande, size 13 or Arial, size 14 if that wasn't found ...

Java - FontMetrics without Graphics

Hello! How to get FontMetrics without use Graphics ? I want to get FontMetrics in constructor, now I do this way: BufferedImage bi = new BufferedImage(5, 5, BufferedImage.TYPE_INT_RGB); FontMetrics fm = bi.getGraphics().getFontMetrics(font); int width = fm.stringWidth(pattern); int height = fm.getHeight(); ...

Change font size macvim?

Hi there, I'm using macvim and I love it. I also happen to really like the default font. My question is: How do I change the font size in my .gvimrc? I want it to be bigger, without changing the font from the default. All the examples I've seen specify a font then a ':' then the size. So how do I just change the size not the font i...

JLabel not displaying all the characters even after dynamically changing font size

Hi all, I am trying to fit a sentence that changes often, in to a few jlabels. Widths of my 3 jlabels stay unchanged all the time. What I am doing is changing the font size so all the characters can fit with out non being out of the display range of the labels. What I do is call below code snippet when ever sentence is changed. Here is...

How to change the button fontsize without changing button size (in android) ?

I need to have a grid (created by program, not by xml) of equally sized buttons. They display text in different sizes. The problem is that when I change the text size to a smaller size, then the button automatically resizes to be smaller than the others. Thanks, Note: the grid is created adding *TableRow*s of buttons to a TableLayou...

Converting LogFont height to Font size in points

Hi I have a LOGFONT structure. Now all i'd like to do is get the associated font size in points from the LOGFONT height. Thanks in advance ...

HTML, CSS..: different font size in buttons and selects than for plain text (at least in FF)

Hi, I have this rule: body { font-family: Arial,Helvetica,sans-serif; font-size: 12px } but i have different font size for the selects and the buttons then for plain text. What should i do if i want the same size for everything? Regards Javi ...

How do you specify a really large character in UIButton?

I have a series of buttons that have suit symbols on them. Currently I provide these suit symbols as bitmaps. In preparation for iPhone 4 I'd like to use text instead. However Interface Builder rescales the button to account for whitespace underneath the symbol so I can't get the image to fill the button completely. Any hints on gett...

How to make javascript for font sizes fully language dependent?

Hello All I have a multilanguage webiste English and Arabic. The javascript for the fontsizes is included in the theme not in the .css. Both language have different fontsize 16 and 12. When switching from English to Arabic the English letters such as ( dates and stuff like that ) are shown way too big. And when switching from English t...

Visual Studio Font Size (Windows 7)

I've recently installed Windows 7. After opening my old C# project in visual studio I noticed that my buttons are too small (button text doesn't fit). Why did Microsoft increase the standard font size (well, font size is still set to 8, but it's somehow bigger now)? Can I fix it somehow, without correcting all my buttons etc. manually? ...

HTML: what are the percentages of the heading tags?

Hi, I have just normalized the font size with this: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, labe...

CSS: how to have different sizes for each font

I have a website the uses "arial narrow". To avoid compatibility problems I made a @font-face version of that font using "Font Squirrel" font-face generator (http://www.fontsquirrel.com), but when I'm on a system that doesn't have the native "Arial Narrow" and then it loads online via @font-face, the font is greater than the native "Aria...

How to figure out which font size to use depending on size of Icon?

I'm trying to create a taskbar Icon in C# that would display a number representing the current processor time of an application. I can figure out the proper size of the icon by simply referencing the default taskbar icons dimesions, however, I run into a problem. Different Icon sizes work well with different font sizes of text. I need to...

How to increase font size based on window width?

I am creating a web based app that will be displayed on a television and other large monitors. I am wanting a quick and easy way to increase the font size to fit the window size. The text is dynamic. Any help is greatly appreciated ;) ...

WPF Label adapt FontSize to it's Width and Height

Hi all, I need to develop a Label control in WPF, on .net 3.5 and VisualStudio 2010, which FontSize automatically makes the text fill the control area. I dont know if create a CustomControl inheriting from label or create a UserControl which contains a Label control. I've seen an example here using a ValueConverter, but I'am not under...

Font-size differences in input fields on FF 3.5 for Mac?

I've noticed while testing my website that the font-size in fields on FF 3.5 on Mac's is bigger than on FF 3.5 for windows or any other browser. Is there a way to style this or fix it? I've tried setting input { font-size: XXpx; } to no avail! ...

How to get rid of unwanted scrollbars in an SSRS reports within an Iframe and increased Windows display size?

We run an web-app with built-in SSRS reports, which are integrated via an Iframe. A user has set her display percentage to 150% in Windows 7. (Control Panel > Appearance and Personalization > Display). She is displaying the webpage with the report in Firefox and she has to scroll horizontally and vertically within the Iframe to view th...

Why are the font sizes different

I've got the following html and css In Firefox the computed font size is 16.66667px In Chrome the computed font size is 13px Needless to say there is a good bit of difference in these two sizes, one is too small to read, one is nicely sized. I guess one way to work around it is to set the font size to 16.67px but why is this the case. ...

iPhone -- getting the adjusted font size of a UITextField

I have a UITextField with the adjustsFontSizeToFitWidth property set to YES. I want to get ahold of the current (adjusted) font size. Is that possible? If not, getting ahold of the actual width of the text (in the adjusted size) would be almost as good. ...

How do I install a customized font in system?? and copy to word pad??

I have designed a special character. what I want is I need to install to windows system. First I want to assign that character to a keyboard. then when I copy this font from a word processor to word pad it should be visible. I have modified glyph of an existing font and replaced "^" character to my new design. Right now I have assigned...