I want to change the font size of the address bar in Chrome programmatically since it's too big for me.
Is there any way to do this?
Change font size onlyIn the Settings window, scroll down to the Appearance section. Under Appearance, click the drop-down menu for the Font size entry. Select the desired font size to set as the default. The options are Very small, Small, Medium, Large, and Very large.
Goto to Displays, go to Resolution, change from "Default for Display" to "Scaled" Chose a larger text option. This will apply to all applications on your computer. Your browser address bar and its font, will be larger but same will apply to the results.
depends on the version... it uses the system font, which is San Francisco as of El Capitan, but Lucida Grande for earlier versions.
Generally, the font size of the address bar is determined by your OS's default font size. Read comments here: https://code.google.com/p/chromium/issues/detail?id=46472. So if you want to adjust it, change your OS default.
If you build your own version of Chrome, you can change the look and feel of the browser, but you'll have to write different code for each platform you want to support.
If you don't want to build your own version of Chrome, then on Windows, you can inject yourself into the Chrome process with SetWindowsHook or SetWindowsHookEx, find the window handle corresponding to the address bar, and then do anything you want to it. Similar idea on OSX. Not sure about Linux. This isn't a recommended approach; it's invasive and subject to breakage.
As far as a Chrome API for an extension or app to change the address bar size, nope, can't do that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With