You are not logged in.

#26 2014-05-26 09:17:07

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: chromium 35 seems to have overlarge font size

joshtau wrote:

It's the same across other systems, so I'll have to write something and release it that fixes this, if I can figure out Chromium smile.

I already posted a quick'n'dirty fix in another thread, here it is:

diff -ur chromium-36.0.1941.0.orig/chrome/browser/defaults.cc chromium-36.0.1941.0/chrome/browser/defaults.cc
--- chromium-36.0.1941.0.orig/chrome/browser/defaults.cc	2014-04-15 09:14:06.000000000 +0200
+++ chromium-36.0.1941.0/chrome/browser/defaults.cc	2014-04-22 21:05:06.736103931 +0200
@@ -14,7 +14,7 @@
 #endif
 #endif
 
-const int kOmniboxFontPixelSize = 16;
+const int kOmniboxFontPixelSize = 11;
 
 #if defined(OS_CHROMEOS) || defined(OS_MACOSX)
 const bool kBrowserAliveWithNoWindows = true;

Adjust accordingly if the my chosen value doesn't suit you (here it produces the same size as everything else on my system, which is 8pt).

Last edited by Gusar (2014-05-26 09:19:08)

Offline

#27 2014-05-26 09:32:11

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: chromium 35 seems to have overlarge font size

Does anyone know if the extension API allows the modification of the font size?

Offline

#28 2014-05-26 11:05:22

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: chromium 35 seems to have overlarge font size

orschiro wrote:

Does anyone know if the extension API allows the modification of the font size?

For web content, yes. For the interface, no. The addressbar size is hardcoded into the source, the only way to change it is patching and compiling.

Offline

#29 2014-05-26 11:14:11

theOptimizedCoder
Member
Registered: 2013-06-16
Posts: 17

Re: chromium 35 seems to have overlarge font size

Dang it, I noticed the same thing too. Now I need to compile the damn thing for this change?

Is google/chromium acknowledging this to be a bug OR is this how it's going to be going forward?

Offline

#30 2014-05-26 11:22:02

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: chromium 35 seems to have overlarge font size

theOptimizedCoder wrote:

Dang it, I noticed the same thing too. Now I need to compile the damn thing for this change?

Yup.

theOptimizedCoder wrote:

Is google/chromium acknowledging this to be a bug OR is this how it's going to be going forward?

It appears not from the previous page of discussion.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#31 2014-05-26 12:02:04

joshtau
Member
Registered: 2014-01-28
Posts: 10

Re: chromium 35 seems to have overlarge font size

Gusar wrote:
joshtau wrote:

It's the same across other systems, so I'll have to write something and release it that fixes this, if I can figure out Chromium smile.

I already posted a quick'n'dirty fix in another thread, here it is:

diff -ur chromium-36.0.1941.0.orig/chrome/browser/defaults.cc chromium-36.0.1941.0/chrome/browser/defaults.cc
--- chromium-36.0.1941.0.orig/chrome/browser/defaults.cc	2014-04-15 09:14:06.000000000 +0200
+++ chromium-36.0.1941.0/chrome/browser/defaults.cc	2014-04-22 21:05:06.736103931 +0200
@@ -14,7 +14,7 @@
 #endif
 #endif
 
-const int kOmniboxFontPixelSize = 16;
+const int kOmniboxFontPixelSize = 11;
 
 #if defined(OS_CHROMEOS) || defined(OS_MACOSX)
 const bool kBrowserAliveWithNoWindows = true;

Adjust accordingly if the my chosen value doesn't suit you (here it produces the same size as everything else on my system, which is 8pt).

Marry me? The developers need to not make it a hardcoded value, have it either in settings or a config file.

You are my hero, trying this now.

Offline

#32 2014-06-03 07:22:35

flexo3001
Member
From: berlin
Registered: 2012-01-13
Posts: 95

Re: chromium 35 seems to have overlarge font size

hey *!
i compiled chromium with this patch and i worked, of course. i built with the default arch-cflags. so i uploaded it for everyone who has an slow pc. maybe for some of its to small; i configuered to match my favorite font.

chromium-35-patched

greetz flexo

EDIT: changed link to new version

Last edited by flexo3001 (2014-06-15 20:15:01)


Fight war not wars, destroy power not people!

Offline

#33 2014-06-03 08:07:43

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: chromium 35 seems to have overlarge font size

@flexo3001

Thank you! So much better now.

See this screenshot: http://i.imgur.com/4e1WPyF.png

How about making a package for the AUR including the patch?

Offline

#34 2014-06-03 19:58:24

flexo3001
Member
From: berlin
Registered: 2012-01-13
Posts: 95

Re: chromium 35 seems to have overlarge font size

orschiro wrote:

@flexo3001

Thank you! So much better now.

See this screenshot: http://i.imgur.com/4e1WPyF.png

How about making a package for the AUR including the patch?

sounds good, but i have no time to maintain this. but we know how fix it now wink

Last edited by flexo3001 (2014-06-03 19:58:48)


Fight war not wars, destroy power not people!

Offline

#35 2014-06-05 22:21:15

crs
Member
From: Boulder, CO
Registered: 2014-03-10
Posts: 9

Re: chromium 35 seems to have overlarge font size

in case anybody is interested in patching the packaged binaries, this works for me (on x86_64):

emacs --eval '(hexl-find-file "/usr/lib/chromium/chromium")'

isearch for "Consent To".  A few lines above that is "1000 0000", which is the compiled value for kOmniboxFontPixelSize.  Change it to whatever you like, save and enjoy.

It will be interesting to see how long it will be until changes to the source and/or build tools break this hack...

Offline

#36 2014-06-06 07:46:58

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: chromium 35 seems to have overlarge font size

Disabling HW-acceleration in Chrome 35.xx seems to fix some hanging problems. Did anyone try 36-beta from the aur? No relevant comments there for this thread.

Offline

#37 2014-06-11 18:19:18

flexo3001
Member
From: berlin
Registered: 2012-01-13
Posts: 95

Re: chromium 35 seems to have overlarge font size

EDIT: moved link to older post

Last edited by flexo3001 (2014-06-15 20:15:46)


Fight war not wars, destroy power not people!

Offline

#38 2014-08-27 17:29:28

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: chromium 35 seems to have overlarge font size

chromium-latest (from yesterday) from AUR seems completely ok. Normal font sizes in menus and pepper-flash seems ok too.

Offline

#39 2014-08-27 17:40:10

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: chromium 35 seems to have overlarge font size

swanson wrote:

chromium-latest (from yesterday) from AUR seems completely ok. Normal font sizes in menus and pepper-flash seems ok too.

The issue was apparently fixed in Chromium 37.

Offline

#40 2014-08-27 18:28:33

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: chromium 35 seems to have overlarge font size

Issue with big fontsizes in menus wasn't fixed in 37.x on Arch.

Offline

#41 2014-08-28 09:09:47

tehgeek
Member
Registered: 2013-02-24
Posts: 12

Re: chromium 35 seems to have overlarge font size

swanson wrote:

Issue with big fontsizes in menus wasn't fixed in 37.x on Arch.

Do you have an example? Just did the update to 37 and fonts look fixed for me, like @orschiro said. smile

Offline

#42 2014-08-28 17:34:17

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: chromium 35 seems to have overlarge font size

Google-chrome Version 37.0.2062.94. Tabs, bookmarkfield and right click menus - all with too big fontsize. Not so in Chromium-Latest.

Guess I'm in a minority then. No bother. I'd just like to inform others in this siuation that there is an alternative. All bookmarks, plugins and logins etc seem to work nicely in chromium-latest too.

Offline

#43 2014-09-25 01:09:54

crs
Member
From: Boulder, CO
Registered: 2014-03-10
Posts: 9

Re: chromium 35 seems to have overlarge font size

crs wrote:

in case anybody is interested in patching the packaged binaries, this works for me (on x86_64):

emacs --eval '(hexl-find-file "/usr/lib/chromium/chromium")'

isearch for "Consent To".  A few lines above that is "1000 0000", which is the compiled value for kOmniboxFontPixelSize.  Change it to whatever you like, save and enjoy.

It will be interesting to see how long it will be until changes to the source and/or build tools break this hack...

okay, it stopped working in chromium 37.  In that version, search for

1000 0000 0001 0101

and replace the first "10" with "0c" or whatever.  In chromium 37.0.2062.120-2 packaged for x86_64, the offset of that byte is 0x048bb048

Offline

#44 2015-08-31 11:22:35

gnomiik
Member
Registered: 2011-08-23
Posts: 13

Re: chromium 35 seems to have overlarge font size

Thanks crs, I can confirm that the hex edit works for the latest chromium version.

For those out there you can do it in a one liner via sed

# Search for 1000 0000 0001 0101 and replace the first "10" with "0B" or whatever. "0B" is the font size. "0B" gives me size 8 on my system. "0C" is larger and "0A" is smaller.
sed -i 's/\x10\x00\x00\x00\x00\x01\x01\x01/\x0B\x00\x00\x00\x00\x01\x01\x01/' PATH_TO_CHROMIUM_EXECUTABLE

Offline

#45 2015-12-04 16:46:19

crs
Member
From: Boulder, CO
Registered: 2014-03-10
Posts: 9

Re: chromium 35 seems to have overlarge font size

chromium 47 has a new way of specifying the omnibox default font size, it's now an integer array [16, 14, 14].  I don't know what the index is, but patching the first element worked for me to change the omnibox font.  I loaded /usr/lib/chromium/chromium using emacs' hexl-find-file, searched for 1000 0000 c744 2474, and patched the first byte to 0x0c

Offline

Board footer

Powered by FluxBB