Is there a way to globally change the font/font size in a project

I'd like to change the default font and/or font size for a project.  Is there a way to do it?  8 pt fonts are just too small for lots of people. What forum would be best to pursue this point?

Thanks

Bob
0
Robert
3/15/2014 11:03:44 PM
embarcadero.cppbuilder.nontech 971 articles. 0 followers. Follow

2 Replies
677 Views

Similar Articles

[PageSpeed] 35

Hi Robert

Robert Byers wrote:

> I'd like to change the default font and/or font size for a project.  Is there 
> a way to do it?  8 pt fonts are just too small for lots of people. What forum 
> would be best to pursue this point?

The short answer is no, but if you have set the font on your forms or left them 
to default and NOT set the font on individual controls you can manage by just 
setting the font of the form.
In other words all ParentFont must be true. 

Another way is to iterate through the controls on the form like this:

{code}
void applyFontToControls( TWinControl* WinCtrl, TFont* font )
{
   int C = WinCtrl->ControlCount;
   for( int i = 0; i < C; ++i )
   {
      TControl *Ctrl = WinCtrl->Controls[i];
      Ctrl->Font = font; 

      String clsName = Ctrl->ClassName();
      if( clsName == L"TPanel" || clsName == L"TScrollBox" )
         applyFontToControls( static_cast<TWinControl*>( Ctrl ) );
   }
}

applyFontToControls( Form1, Font );
{code}

Be aware of CheckBoxes, RadioButtons and such, as they don't autosize 
according to the font size, so they might end up cutting of text.

Instead of changing the Font you might be able to scale the form using this 
function:
 
TWinControl::ScaleBy( int MultiplyBy, int DevideBy ); 

in the constructor you can write something like this:

ScaleBy(120,100);

To get a for at 120% of normal size.

You can also use ScaleBy inside a button click, but if you provide that
option, you have to know that the scale is always on the current size,
so getting back to normal size can be a little tricky, because of rounding
errors and such, the best is to let the user restart the program in a
larger size.

But if you have users that say Font size 8 is to small, you might want to
suggest, that they use large or extra large font on their system. I personally 
use 144DPI 150% (normal is 96DPI) and I even prefer to make my apps with 
Arial size 9 as the font.


Best regards
Asger-P
http://asger-p.dk/software
0
Asger
3/16/2014 12:34:49 AM
Thank You!

Bob

> {quote:title=Asger Joergensen wrote:}{quote}
> Hi Robert
> 
> Robert Byers wrote:
> 
> > I'd like to change the default font and/or font size for a project.  Is there 
> > a way to do it?  8 pt fonts are just too small for lots of people. What forum 
> > would be best to pursue this point?
> 
> The short answer is no, but if you have set the font on your forms or left them 
> to default and NOT set the font on individual controls you can manage by just 
> setting the font of the form.
> In other words all ParentFont must be true. 
> 
> Another way is to iterate through the controls on the form like this:
> 
> {code}
> void applyFontToControls( TWinControl* WinCtrl, TFont* font )
> {
>    int C = WinCtrl->ControlCount;
>    for( int i = 0; i < C; ++i )
>    {
>       TControl *Ctrl = WinCtrl->Controls[i];
>       Ctrl->Font = font; 
> 
>       String clsName = Ctrl->ClassName();
>       if( clsName == L"TPanel" || clsName == L"TScrollBox" )
>          applyFontToControls( static_cast<TWinControl*>( Ctrl ) );
>    }
> }
> 
> applyFontToControls( Form1, Font );
> {code}
> 
> Be aware of CheckBoxes, RadioButtons and such, as they don't autosize 
> according to the font size, so they might end up cutting of text.
> 
> Instead of changing the Font you might be able to scale the form using this 
> function:
>  
> TWinControl::ScaleBy( int MultiplyBy, int DevideBy ); 
> 
> in the constructor you can write something like this:
> 
> ScaleBy(120,100);
> 
> To get a for at 120% of normal size.
> 
> You can also use ScaleBy inside a button click, but if you provide that
> option, you have to know that the scale is always on the current size,
> so getting back to normal size can be a little tricky, because of rounding
> errors and such, the best is to let the user restart the program in a
> larger size.
> 
> But if you have users that say Font size 8 is to small, you might want to
> suggest, that they use large or extra large font on their system. I personally 
> use 144DPI 150% (normal is 96DPI) and I even prefer to make my apps with 
> Arial size 9 as the font.
> 
> 
> Best regards
> Asger-P
> http://asger-p.dk/software
0
Robert
3/16/2014 7:33:10 PM
Reply:

Similar Artilces:

font!font!font!
Name: robbie Product: Firefox Summary: font!font!font! Comments: Firefox font is bad !Very bad! The only reason I don't want to use firefox is font problem . I know how to change the font on firefox but it just not good enough. Internet explorer font is excellent.It also the only thing better than firefox. Browser Details: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Foxy/1; .NET CLR 1.1.4322) ...

a way to change Skype font without changing KDE fonts
Hi folks! Do you know a way to change Skype default font size without changing the default fonts in KDE through KDE Control Centre? I know about "qtconfig" but it does not work in SUSE 11.1 and later (11.2 also, of course). I filed a bug about the "qtconfig" problem but it seems that this is the new way fonts are changed in all applications in SUSE - only by a centralized way - through KDE Control Centre... -- 1. Flawless Web-browsing (all details connected to browsing) 2. Flawless video playing 3. Flawless music playing 4. Flawless chat clients (perfect...

changing default font size does not affect font size on form buttons and input fields.
Hello, in https://bugzilla.mozilla.org/show_bug.cgi?id=305109 I propose that changing the default font size in Preferences should also change the font sizes for form controls. On windows it works this way. Concerning Unix, though, the form controls keep their size, even if you adjust the default font size in Firefox preferences. This makes for ugly form controls if you do not adjust your GTK settings along with your Firefox default font size. But there is a workaround: you can also make Firefox scale the form controls by applying the following changes to 'font:' li...

Cannot change the font or font size of PicButtn ocx.
Hello, I am using PB 6.5.1 Enterprise for Win32. I inserted a PicButtn ocx control into a window and changed the font and font size using the OLE Control Properties button on the OLE Custom Control window. I saved and closed the window. When I re-opened the window the picbuttn ocx font and font size had changed back to their initial settings. I believe this is a standard OCX, and it with PB, although I am not positive. I was not able to locate an associated help file. Then name of the OCX is PicButtn.OCX, dated 9/24/96 11:54am. It was located in the Windows/System dir...

Change font/font size in Seamonkey2.0
Hi, up to now i run SM1.1.18 under eCS2.0RC6a and tried to see how SM2.0 is usable for me. I am disappointed concerning windows display. The font size used are to large to describe the buttons and all other stuff including contents of some windows. My old window size is mostly to small to keep the text. The used times roman font is also not my favorite. My question is: how can i modify or add which statements to about:config to adapt SM2.0 to look like SM1.1.18. Thanks and have a nice day. Karl Tue, 22 Dec 2009 18:11:01 +0100, /Karl/: > up to now i run SM1.1.18 under ...

Changing Font Sizes Globally
Some web sites have a feature whereby you can click a button on the page, and set all the font sizes larger or small withing the web parts. See www.DotNetNuke.com for an example of this feature (for the record, DNN does not use web parts, but the feature is there). Our web site uses web parts, and we want to implement this feature. There is some discussion over how to accomplish this. I had suggested that we have either have multiple theme files (theme_normal, theme_large) or different CSS classes within the theme (Title_Normal, Title_Large). Some people have suggested iterating through t...

Font font = new Font
i am not sure if when i use   Font font = new Font("Free 3 of 9", 16); // Free 3 of 9 is a bar code Font   in my code if the end user does not have that font will it still reder corecly if i use it on a dinamicly generated grephic you know the code will allways work I supose you're trying to create an image with a barcode to print it and then read the barcode. Read this article. If your ASP.NET server has the font installed and you create an Image using that font, the client machine doesn't have to install it. I tried that some time ago, but the barcode...

Is there a way to change the font size for thunderbird?
Is there a way to change the font size for Thunderbird? I've looked around and can't seem to find the userChrome.css in windows 7. I can't seem to find it anywhere on the drive. Hidden files are visible. It's not in %APPDATA% thanks Carl Carl wrote: > Is there a way to change the font size for Thunderbird? You are posting to a Tbird support group via GG googlegroups, so unlike those of us who are reading and posting to that group via Tbird and the moz news server news.mozilla.org I can't see your v. of Tbird in your message headers, so I will a...

Changing font size
I'm using Mozilla 1.6. Love it so much, I don't know if I should change. 99% of the sites that I go to, I want the font size to be 20. But on one site (which I use at least 3 times a day) I need to use font size 14. To change it, I need to click 7 different times. Then, I have to click it 7 more times to go back to the other size font. Is there anyway, with any of the different Mozillas or FireFox, that I can change font size without going through so much clicking? Thank you JD Howard aber hob zu reden an und schrieb: > Is there anyway, with any of the diffe...

superreview granted: [Bug 407415] NaNs in gfx*Font with font-size: 0 and font-size-adjust : [Attachment 293072] check for zero xHeight
Robert O'Callahan (:roc) <roc@ocallahan.org> has granted superreview: Bug 407415: NaNs in gfx*Font with font-size:0 and font-size-adjust https://bugzilla.mozilla.org/show_bug.cgi?id=407415 Attachment 293072: check for zero xHeight https://bugzilla.mozilla.org/attachment.cgi?id=293072&action=edit ------- Additional Comments from Robert O'Callahan (:roc) <roc@ocallahan.org> Should you also check that emHeight is nonzero in gfxWindowsFonts to ensure we don't divide by zero on it? I guess it should be equal to the requested font size which should be nonzero...

Can't change font, font size FIrefox 3.6.8
I have a problem. I can't change fonts in Firefox preferences (Content). Anybody has a similar or same problem? My OS is openSUSE 11.3, KDE 4.4.4. release 8. Any type and size of font I use, nothing happens. It's still same font which I choose for the first time I've started Firefox afer installing openSUSE 11.3. -- Recoba20 ------------------------------------------------------------------------ So go to Menu / Personnel Settings / Application Appearance / GTK Styles and Fonts. Once you select the font for KDE, use the GTK setting to use the same sett...

Globally change font sizes in firemonkey (at run time)
hello How do I change the default settings so I can in/decrease the font size of Tlabel/ buttons etc for all buttons in the app My understanding was to edit the global settings but with code how ? I googled forever but I could be wrong firemonkey is another beast from the VCL users thank you PW > {quote:title=Philippe Watel wrote:}{quote} > hello > How do I change the default settings so I can in/decrease the font size of Tlabel/ buttons etc for all buttons in the app > My understanding was to edit the global settings but with code how ? I googled forever > but I cou...

Why did you change the ability to change global font
Name: Beth Marie Murphy Email: bethmarieatsaskteldotnet Product: Firefox Summary: Why did you change the ability to change global font Comments: I would like to know why you took away the ability to change default font in messages. The one you chose is very small and I prefer Ariel because of its clean character and is easier to read. It is a pain in the neck to have to change it with each message. PLEASE bring back the ability to change default font!!!!!!!!!!!!!!!!! Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ...

Add-on suggestion: quick way to change minimum font size
Name: Andy Levinson Email: alevinson_at_petersendean.com Product: Firefox Summary: Add-on suggestion: quick way to change minimum font size Comments: Background: I have a laptop that is hi-res (1600x1200) but average screen size (15"). But 1600x1200 on 15" is way too small for most web sites so I have my minimum font size size set to 18 points. Alas, some (many?) sites are designed for 1024x768 screens and/or smaller fonts and my "larger" fonts pile on top of each other and on graphics. So my half-solution is to reduce or eliminate the minimum font size fo...

Web resources about - Is there a way to globally change the font/font size in a project - embarcadero.cppbuilder.nontech

Globally Harmonized System of Classification and Labelling of Chemicals - Wikipedia, the free encyclopedia ...
It is designed to replace the various classification and labeling standards used in different countries by using consistent criteria for classification ...

World Cup Was Facebook’s Most-Discussed Topic Globally in 2014; Ebola in U.S.
The most-discussed topic on Facebook globally in 2014 was 2014 FIFA World Cup Brazil , while the outbreak of the Ebola virus was the topic of ...

Facebook rolling out new Page Insights globally
The new and improved Page Insights , which have been rolling out slowly to Facebook page admins, are coming to all page owners soon . Facebook ...

Samsung Electronics Ships over 1 Million Units of Galaxy Note Globally - Flickr - Photo Sharing!
... has reached 1 million global shipping. Samsung Electronics said on the 29th that it has shipped more than 1 million units of Galaxy Note globally. ...

Large-scale renewables investment in Australia lowest since RET began, but surges globally
Australian investment in large scale renewables has dried up, while global investment surges 33% compared to prior quarter.

Toyota reclaims #1 spot globally
Toyota set to reclaim crown

Globally synthesised unit in synch
THE common dream of representing Australia at next year’s Rio Games has banded five synchronised swimmers from all parts of the globe together ...

Govt says farmers to be globally competitive
The fed govt believes measures in its agriculture white paper will ensure financial flexibility for farmers.

NBN to search globally for new boss
NBN Co announced today Chief Executive Mike Quigley will retire from corporate life.

Abbott out of step locally and globally
It seems clear that Tony Abbott's views on climate policy strike a chord only with coal-powered electricity providers.

Resources last updated: 12/24/2015 7:35:40 AM