fontsize

Relation between length and font-size of a string and width of a textbox.

Hi to all. I've a field in a database, this field has a maximum length, and I want to set a textbox to the appropriate width. I'm creating the textboxes in runtime. How can I calculate the value of width property? For example, if I have a field nvarchar(5) named IDClient, and the font-Size is 13, I want to create a texbox with a width ...

sIFR 3 r436: how to get really big fonts

For some reason I can't seem to get sIFR to display fontsize larger than about 126 px. I've tried to change the MAX_FONT_SIZE found in sifr.js, but it's no use. I've also tried adjusting different fontsizes in the css, but it won't go higher than 126px. Does anybody know how to get sIFR to display a really large fontsize? -- Ploma -- ...

Increasing or decreasing control fontsize on runtime according to Slider(WPF component) value

Hello, I want to increase or decrease font size of controls such as window, treeView, ribbon menu etc that are contained by main window. I have a font size slider create method and I want to acces all of Control and TextBlock by using visualtree helper and increase or decrease their font size according to slider value. Methods are be...

execCommand: change fontsize problem in internet explorer

hi, this is preview of my code> sel_font = ...some number... Editor.execCommand("FontSize", false, sel_font); i want to change fontsize of selected text. in firefox is everything ok, but in internet explorer i can change fontsize only to some limited size, bigger numbers are not working. has explorer some restrictions to fontsize, wh...

Determine largest font for given rectangle height (WinForms)

This is the inverse of Determine Label Size based upon amount of text and font size in Winforms/C#. Given a rectangle of fixed height but variable width, is there an efficient way to determine the largest size of a given font that will fit in the rectangle (height-wise) without risk of losing ascenders/descenders? I'm currently conside...

using percentages for css text - how do i stop inheritance of font-size from parent

i have something like this <body> <h2> Blue <span> <a ....>add to combo</a> </span> </h2> </body> and css #body {font-size: 100%} h2{font-size: 200%} a{font-size: 80%} now ive been reading up and realise that the link a wont be 80% of 100% but rather 80% of 200% of 100% because percentages are taken fro...

Correlation between font size in Flash and .NET/GDI+

I guess the title contains my whole question. How can I draw a string onto an image in Flash and .NET/GDI+ respectively and gain the same result? (I'm not a Flash programmer myself and it is rather hard to find out about what kind of unit Flash uses by googling for something like "flash font size"...) Ekeforshus ...

WPF font scaling

I have a WPF application where the user interface should be scaled so that it should become larger if the windows is made larger. In one of the dialogs, I need to present a list of items to a user and the user should click one of them. The list will contain from 1 to around 15-20 items. I want the font size for each individual item to be...

PHP Accurate Font Width

Hi, I am trying to generate a text image. So I create a new font: $font = '../fonts/Arial.ttf'; Then I add some background for the text imagefilledrectangle($image, 0, 0, ?, 12, $green); And add text imagettftext($image, 12, 0, 0, 12, $white, $font, $text); The problem is right now I don't know how to get the width o...

Font size in TextView

I just plunked a textview down on a view, and found that the attributes inspector in IB doesn't seem to allow changing font size. Is that possible, or am I stuck with the default size? Thanks in advance for any help. John Doner ...

matplotlib: Controlling pie chart font color, line width

I'm using some simple matplotlib functions to draw a pie chart: f = figure(...) pie(fracs, explode=explode, ...) However, I couldn't find out how to set a default font color, line color, font size – or pass them to pie(). How is it done? ...

Can I change the size of the Xcode IDE fonts?

I'd like to change the font size of the "Groups & Files" panel of the Xcode IDE. I know how to change the "Fonts & Colors" in the preferences, but those (seem to) only affect the code window, not the rest of the IDE. Any ideas? Thanks! ...

Dynamic Font Scaling CSS

I love using the MS fonts for Vista, they're great. However they're several points smaller than the common failsafe fonts, meaning a website optimized for the Vista fonts won't look nice for people with older fonts. The problem is described in this old article: http://neosmart.net/blog/2006/css-vistas-new-fonts/ It's been 3 years sinc...

Resize font size to fill UITextView?

How would I set the font size of text in a UITextView such that it fills the entire UITextView? I'd like the user to type in their text, then have the text fill the entire UITextView. Any help is appreciated! ...

How to fix this kind of problem?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>test</title> </head> <body> <br /><br /><br /> <div style="line-height:150%"> <span...

avoid the auto increase font size c#

Hi, I am using MasterPage and using using a CSS in master page. My problem is in its content page, I have a messgage box comes up in some condition resulting FONT SIZE INCREASE. I do not have any font specification in my content page. I do not know how my content page font size change when I click on "OK" to my message box. Please sugg...

Changing FontSize relationally to the windowsize with WPF?

Is it possible, that the FontSize getting smaller if I shrink the window and getting bigger if I enlarge the window? ...

Emacs font sizing with Ctrl key and mouse scroll

notepad++ allow me to increase the font size when I hold the Ctrl Key and rotate the mouse middle scroll button to forward. In the same way, the when I hold Ctrl and rotate the mouse middle scroll button backward, the fond size reduces. How can I get the same with Emacs? ...

(WPF) How to set value of a sys:Double to SystemFonts.MessageFontSize from ResourceDictionary?

Scenario: I want to use 3 standard font size for my WPF application : BigFontSize, NormalFontSize, and SmallFontSize. These are double values and they are defined in resource dictionary as (where sys is appropriately defined): <sys:Double x:Key="BigFontSize">18</sys:Double> <sys:Double x:Key="NormalFontSize">14</sys:Double> <sys:Doub...

For Qt 4.6.x, how to auto-size text to fit in a specified width?

Inside of my QGraphicsRectItem::paint(), I am trying to draw the name of the item within its rect(). However, for each of the different items, they can be of variable width and similarly names can be of variable length. Currently I am starting with a maximum font size, checking if it fits and decrementing it until I find a font size th...