Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Setting Default Font Size in ROM Build

OP ismoore

8th August 2014, 07:27 PM   |  #1  
OP Member
Flag Charlotte, NC
Thanks Meter: 13
 
50 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Where would I find the file that contains the default font size information. I'm building my own ROM and have changed the default font type but would like to set the default size of the font at time of flashing to the smallest possible size but have not been able to locate the file to do so. I've spent several hours looking through framework-res.apk and twframework-res.apk. I'm sure their in there somewhere and before spending more time looking for it, thought I would ask. Appreciate any help that could point me in the right direction. Thanks.

Font Size Menu
8th August 2014, 09:27 PM   |  #2  
BigBot96's Avatar
Recognized Contributor
Flag Ooltewah
Thanks Meter: 1,521
 
1,225 posts
Join Date:Joined: Mar 2012
Donate to Me
More
I'm unsure where to find it in the system, but if you look in the database
Settings Storage -> system -> font_scale
You can set it that way. Tiny is 0.71.
8th August 2014, 10:25 PM   |  #3  
OP Member
Flag Charlotte, NC
Thanks Meter: 13
 
50 posts
Join Date:Joined: Jul 2011
Donate to Me
More
Quote:
Originally Posted by MrHyde03

I'm unsure where to find it in the system, but if you look in the database
Settings Storage -> system -> font_scale
You can set it that way. Tiny is 0.71.

Sorry if I sound clueless here, but where do I find the database?
9th August 2014, 05:07 AM   |  #4  
BigBot96's Avatar
Recognized Contributor
Flag Ooltewah
Thanks Meter: 1,521
 
1,225 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Quote:
Originally Posted by ismoore

Sorry if I sound clueless here, but where do I find the database?

You'll need SQLite Editor from play store to find it on your phone, or you can flash it via recovery using the sqlite binary, a shell script, and a SQL query.

I'm actually wanting to do this in my ROM also but haven't looked into it much yet, but here's the SQL query that I currently have (untested, may need work as I'm a bit rusty with SQL queries).
Code:
UPDATE system SET value='0.85' WHERE name='font_scale';
I'm sure there's a place in the ROM, I've just not found it yet. I've seen ROMs on other devices in the past with font scale set low.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes