fontsize

CSS font size using em different on different pages

Hi all, CSS is not my forte so this might be something simple. I have set my footer font size in a stylesheet using 0.8em but on different pages it is a different size. I'm only editing someone elses work and he did a poor job at not closing tags so its a bit painful. Is there a way to clear all font settings so that the footer is the ...

CSS force "font-size: small;" to 13px

Hello, how can I force the attribute "small" to a specifically size? (ex: 13px) I'm reading data from a db and I have to display tags like this: <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: justify;"><span style="font-size: small;">Text</span></p> I can't modify these tags and works different in IE8 and FireFox so I...

Android - Changes in "Style.xml" for Listview font-size

I have defined style for "TabWidget" as below: <style name="MyTheme" parent="@android:style/Theme.Light"> <item name="android:tabWidgetStyle">@style/LightTabWidget</item> </style> <style name="LightTabWidget" parent="@android:style/Widget.TabWidget"> <item name="android:textSize">12px</item> </style> In which i am...

How would you calculate the point size of a font necessary to best fit a predefined area?

I have an interesting problem. I'm almost there but am curious how others would tackle it. I want to display some multi-line text in a predefined area. I don't know what the text will be or how big the area will be so the function would have to be written generically. You can assume a standard font is always used but the point size is...

C# WPF - ComboBox to also be a TextBox, for example: just like in office where users can choose Font Size or enter it

Hi, I would like to allow users to choose a Font Size from a ComboBox, but i would also like them to be able to enter the size by there own, i tried out the property: "IsEditable" (and changed it to true as value) of the ComboBox, but when i enter something that isn't in the ComboBox items (for example: my items are- 2,3,4;and i entered-...

hover in jQuery increment fontSize error

ok, I'm fooling around with jQuery and for the life of me can't find an elegant way to fix this error. jQuery('a').hover(function() { jQuery(this).animate({fontSize : '+=5'}); }, function() { jQuery(this).animate({fontSize : '-=5'}); }); The problem with that is that I build up an animation que. I thought i could solve it with...

font size in html code

<html> <tr> <td style="padding-left: 5px;padding-bottom:3px; font size="35;""> <b>Datum:</b><br/> November 2010 </td> </html> is my code correct? i would like to increase the font of the first line. Not sure if i have to put 2 "'s here. and it seems it didn't work. ...

Why is text rendered with a greater font-size in Opera?

I'm working on an HTML page that needs to be more or less pixel-perfect, and I noticed that in Opera 10, fonts are rendering larger than they do in other browsers, even though the font-size is effectively the same. Please see this example page in Opera 10 and another browser like Firefox 3.6: http://troy.onespot.com/static/stack_overfl...

Is there any way to change the title font size in a UIActionSheet?

The font is very small and hard for some to read so I'd like to make it closer to the font size used on the buttons below it. ...

Font weight in IE8 under Windows Server 2008

My screen looks good in IE8 under Windows XP. But when I open it in IE8 under Windows Server 2003, all text is more bold than in XP. I can apply styles to it, for example change font-weight in css, but in that case font weight changes under Windows XP too and in any case my screen looks differ. ...

Coordinate scaling causes too large font sizes in QPainter::drawText

I'm working on simple 2D visualization module for MD simulation code. What I'm trying to do is drawing positions of simulated molecules using: myPainter.drawEllipse(myQPoint,myRx,myRy) And that part works pretty good on my visualization widget. The thing that happened to be a problem is writing text which should represent each molecu...

How do I calculate x-height i.e. ex of a Font object?

The x-height is a font metric, that is given in terms of the em-height, and is approximately 0.48 of an em, but this depends on the font... In CSS these two units are available, I am interested in the ex unit. There is also an em unit, such that the ex unit is given in terms of it. The following table shows some metrics, available thro...

C++ Gdiplus::Font changing font size and family

Look this code Gdiplus::Graphics g(hDC); Gdiplus::Font *f = new Font(L"Times new roman", 16); Gdiplus::SolidBrush b(Gdiplus::Color(255,0,0,0)); g.DrawString(L"Hello", 5, f, &Gdiplus::StringFormat(), &b); // Now i want to change font styles // using f->setSize() or f->setFontFamily(). g.DrawString(L"Hello", 5, f, &Gdiplus::StringForma...

Adjusting Font Size to Fit, Paint.measureText returns too small a value

I'm using the FontFitTextView that was posted in this other thread, but it isn't working exactly right for me. The measureText() call is returning a number that is obviously too small to display the string. When it runs through to find a font size that will allow the text to fit, the font size it settles on is still too big. I feel like ...