[FONTS|TUTORIAL] Flashable Font Zips for Pixel 2/XL Oreo & P | Updated 3/21/18

Search This thread

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth





FontsHeader2_zpsxmiptvck.png




I am not responsible for your device.
You must be rooted.


So far as I'm aware, the Google Sans font is new for the 8.1.0 preview, or at least it being used for the colon in the lockscreen is new.
Due to this, the old lockscreen-clock font fix didn't work.
So, I've made my own flashable font zips with the fix applied.​


Change Log:

3/21/18
- Added Nunito font

3/16/18
- Added Open Sans font
- Added Fira Sans font

3/11/18
- Added Roboto-Light font

2/28/18
- Added Bariol font
- Added San Francisco font

2/23/18
- Added Atma font
- Added Storopia font
- Added Averia Sans Libre font
- Added Averia Serif Libre
- Added Lemonada
- Added Lobster Two
- Added Overlock

2/21/18
- Added Slate Pro font
- Added Raleway font

2/17/18
- Added fix for lock-screen clock issue on custom ROMs

2/13/18
- Added Alegreya Sans font

2/12/18
- Added Sofia Pro font

1/21/18
- Added "Gotham" font
- Added "China Cat" fixed for Pixel 2/XL font
- Added "Advent Pro" font
- Added "Arima Madurai" font
- Added "Arsenal" font
- Added "Dosis" font
- Added "Expletus Sans" font

1/19/18
- Added "Tahoma" font

1/6/18
- Added "Tinos" font

1/8/18
- Added "Google Sans" font

1/4/18
- Added "Evolventa" font
- Updated "HelveticaNeuev2_Pixel2XL_8.1.0" zip with fixed version

12/10/17
- Added "Ubuntu Taller" font
- Added "Merriweather" font

12/5/17
- Added "Custom Unrivalled" font

What are probably going to be frequently asked questions:

Q: Will this work on 8.0, 7.1.1, or 7.1.2?
A: So far as I can tell, the GoogleSans font is new for 8.1.0, so the zip will probably work, but the lockscreen clock will probably have the square issue. I would have a full backup of all your stock font files before you try it, if I were you.

Q: Will this work on my device (that's not a Pixel 2 or 2 XL)
A: So far as I can tell, the GoogleSans font is new for 8.1.0, so the zip will probably work, but the lockscreen clock will probably have the square issue. I would have a full backup of all your stock font files before you try it, if I were you.

Q: Do I take request? Can you please make xxxx font work?
A: Yes, but you will need to do some work as well, and you will have to be patient. I will work on them as time allows.
Here's what I will need from you:
  1. The font files you want zipped up and posted in this thread. (I'm not going to go searching)
  2. The font files you upload MUST have at least the follow types of files/weights, otherwise I WILL NOT BOTHER WITH IT:
    • Bold
    • Bold Italic
    • Regular or Medium
    • Regular Italic or Medium Italic (not absolutely necessary, but preferred)
  3. If you want your font to really look good everywhere, then you should look for fonts that come with the following weights as well:
    • Thin or Light
    • Thin Italic or Light Italic
    • Condensed-regular or condensed-medium. The more condensed versions the better (eg - condensed-bold, condensed-italic, condensed-light, etc.)

Custom ROM and Android P Font Fixes

-Custom ROMs for the Pixel 2/XL apparently don't use the GoogleSans-Regular font for the lock screen clock; hence, the fix that has been applied to all of these fonts does not work on custom ROMs.
-As far as Android P, Google decided to use some of their GoogleSans-xxxx files in places that they didn't in Oreo. Because they weren't used in previous versions Android (at least as far as anyone was able to tell), they were never thought of as needing to be replaced in custom font zips, and so there are a few spots in Android P where the custom font does not get set properly.

Don't worry, though. I've got you covered.

- If the zip you're going to flash says something along the lines of "FixedForStockAndCustomROMS," then it's already been fixed and it will work on a custom ROM.
- If the title of the zip you're going to flash says anything about "Android P" in it, then it's already been fixed and should work without any issues on Android P.

Otherwise if the zip title makes no mention of custom ROMs or Android P, you'll need to use this fix.
AFTER you flash one of these font zips, flash the Pixel2XL_FontFixFor-CustomROMs+Android-P zip from this post: https://forum.xda-developers.com/showpost.php?p=75605109&postcount=373.
That will fix your lock-screen clock issue when on custom ROMs or Android P.
So far, it's been verified as working on Nitrogen, Dirty Unicorn, Resurrection Remix and Android P. If you've tried it successfully on other ROMs, please let us know.

Available fonts so far:

*All fonts have fully functioning lockscreen fonts, meaning there is no need to apply a fix because I've already done that.
Ubuntu - screenshots here: https://forum.xda-developers.com/showpost.php?p=74660773&postcount=14
Walkaway - screenshots here: https://forum.xda-developers.com/showpost.php?p=74660793&postcount=15
SonySketch - screenshots here: https://forum.xda-developers.com/showpost.php?p=74660698&postcount=13
Bellota 1.9 - screenshots here: https://forum.xda-developers.com/showpost.php?p=74662699&postcount=19
Comfortaa - screenshots here: https://forum.xda-developers.com/showpost.php?p=74673323&postcount=30
Rosemary - link, info, and screenshots here: https://forum.xda-developers.com/showpost.php?p=74683775&postcount=39
Oswald - screenshots here: https://forum.xda-developers.com/showpost.php?p=74685035&postcount=41
HelveticaNeueLSTStdUltraLight - screenshots here: https://forum.xda-developers.com/showpost.php?p=74685244&postcount=43
HelveticaNeuev2 - screenshots here: https://forum.xda-developers.com/showpost.php?p=74685358&postcount=44
Custom Unrivalled - screenshots here: https://forum.xda-developers.com/showpost.php?p=74748954&postcount=78
Ubuntu Taller - screenshots here: https://forum.xda-developers.com/showpost.php?p=74803089&postcount=100
Merriweather - screenshots here: https://forum.xda-developers.com/showpost.php?p=74805195&postcount=106
Evolventa - screenshots here: https://forum.xda-developers.com/showpost.php?p=75081193&postcount=182
Google Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75119650&postcount=199
Tinos - license information, original unaltered font zip, and screenshots here: https://forum.xda-developers.com/showpost.php?p=75131198&postcount=205
Tahoma - info and screenshots here: https://forum.xda-developers.com/showpost.php?p=75264476&postcount=262
Gotham - screenshots here: https://forum.xda-developers.com/showpost.php?p=75283655&postcount=267
Chinacat - info and screenshots here: https://forum.xda-developers.com/showpost.php?p=75283946&postcount=268
Advent Pro - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288937&postcount=281
Arima Madurai - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288966&postcount=282 See Post # 3 for zip
Arsenal - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288969&postcount=283 See Post # 3 for zip
Dosis - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288976&postcount=284 See Post # 3 for zip
Expletus Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288988&postcount=285 See Post # 3 for zip
Sofia Pro - screenshots here: https://forum.xda-developers.com/showpost.php?p=75546576&postcount=313 See Post # 3 for zip
Alegreya Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75556402&postcount=315 See Post # 3 for zip
Raleway - screenshots here: https://forum.xda-developers.com/showpost.php?p=75651095&postcount=400 See Post # 3 for zip
Slate Pro - screenshots here: https://forum.xda-developers.com/showpost.php?p=75651235&postcount=401 See Post # 3 for zip
Storopia - screenshots here: https://forum.xda-developers.com/showpost.php?p=75672205&postcount=405 See Post # 3 for zip
Atma - screenshots here: https://forum.xda-developers.com/showpost.php?p=75672212&postcount=406 See Post # 3 for zip
Averia Sans Libre - screenshots here: https://forum.xda-developers.com/showpost.php?p=75672228&postcount=407 See Post # 3 for zip
Averia Serif Libre - screenshots here: https://forum.xda-developers.com/showpost.php?p=75674331&postcount=408 See Post # 3 for zip
Lemonada - screenshots here: https://forum.xda-developers.com/showpost.php?p=75674340&postcount=409 See Post # 3 for zip
Lobster Two - screenshots here: https://forum.xda-developers.com/showpost.php?p=75674346&postcount=410 See Post # 3 for zip
Overlock - screenshots here: https://forum.xda-developers.com/showpost.php?p=75674354&postcount=411 See Post # 3 for zip
San Francisco - screenshots here: https://forum.xda-developers.com/showpost.php?p=75729584&postcount=424 See Post # 3 for zip
Bariol - screenshots here: https://forum.xda-developers.com/showpost.php?p=75729569&postcount=423 See Post # 3 for zip
Roboto-Light - screenshots here: https://forum.xda-developers.com/showpost.php?p=75856645&postcount=453 See Post # 3 for zip
Open Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75878800&postcount=480 See Post # 3 for zip
Fira Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75916664&postcount=494 See Post # 2 for zip
Nunito - screenshots here: https://forum.xda-developers.com/showpost.php?p=75972277&postcount=510 See Post # 2 for zip
Amarante - screenshots here: https://forum.xda-developers.com/showpost.php?p=76005243&postcount=555 See Post # 2 for zip
Ropa Sans - screenshots and information here: https://forum.xda-developers.com/showpost.php?p=76089735&postcount=588 See Post # 2 for zip
Playfair - screenshots here: https://forum.xda-developers.com/showpost.php?p=76089708&postcount=587 See Post # 2 for zip
Barlow Condensed - screenshots here: https://forum.xda-developers.com/showpost.php?p=76115431&postcount=598 See Post # 2 for zip
Barlow Condensed EXTRA BOLD - screenshots here: https://forum.xda-developers.com/showpost.php?p=76115446&postcount=599 See Post # 2 for zip
Cyclo - screenshots and information here: https://forum.xda-developers.com/showpost.php?p=76179469&postcount=604 See Post # 2 for zip
Tillium Web - screenshots here: https://forum.xda-developers.com/showpost.php?p=76329859&postcount=645 See Post # 2 for zip

User submitted font zips. Thank you guys!
OnePlus font courtesy of @zupastef: https://forum.xda-developers.com/showpost.php?p=75149094&postcount=209
Proxima Nova, San Fransisco, and Inter UI fonts courtesy of @aj.pai.r: https://forum.xda-developers.com/showpost.php?p=75242775&postcount=244
Samsung Sans font courtesy of @Amjad.AbdulGhani: https://forum.xda-developers.com/showpost.php?p=75306414&postcount=292



Flash via TWRP. A Pixel 2 XL 8.1.0 stock-font flashable zip is also attached, in case you want to revert back.
 

Attachments

  • StockFonts.zip
    4 MB · Views: 2,806
  • Pixel2XL_8.1.0_Ubuntu-Font.zip
    3.8 MB · Views: 3,259
  • WalkawayFont_Pixel2XL_8.1.0.zip
    738.7 KB · Views: 691
  • SonySketchFont_Pixel2XL_8.1.0.zip
    1.9 MB · Views: 926
  • Bellota_1.9_Pixel2XL_8.1.0.zip
    947.8 KB · Views: 548
  • Comfortaa_Pixel2XL_8.1.0.zip
    1.5 MB · Views: 672
  • Oswald_Pixel2XL_8.1.0.zip
    1 MB · Views: 558
  • HelveticaNeueLTStdUltraLight_Pixel2XL_8.1.0.zip
    478.2 KB · Views: 605
  • Custom_Unrivalled_Pixel2XL_8.1.0.zip
    1.4 MB · Views: 625
  • UbuntuTaller_FIXED_FOR_Pixel2XL.zip
    2 MB · Views: 762
  • Merriweather_For_Pixel2XL.zip
    1.7 MB · Views: 475
  • Evolventa_Pixel2XL_8.1.0.zip
    980.3 KB · Views: 443
  • HelveticaNeuev2_Pixel2XL_8.1.0.zip
    1.4 MB · Views: 908
  • GoogleSans_Pixel2XL_8.1.0.zip
    1.3 MB · Views: 3,177
  • Tinos_Pixel2XL_8.1.0.zip
    5.2 MB · Views: 441
  • Tahoma_Pixel2XL_8.1.0.zip
    3 MB · Views: 431
  • Gotham_Pixel2XL_8.1.0.zip
    776.5 KB · Views: 409
  • Chinacat_Pixel2XL_8.1.0.zip
    788.4 KB · Views: 467
  • GothamLite_Pixel2XL_8.1.0.zip
    909.6 KB · Views: 280
  • AdventPro_Pixel2XL_8.1.0.zip
    656.1 KB · Views: 467
Last edited:

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
How to Make Your Own Flashable Font Zips


Picking the Right Font

Notice the image below.
The screenshots are of the following:
Quick Settings
XDA Labs
The Project Fi App
My app drawer
FontWeight_Examples_zpsiihlyezq.png

In just these four snippets we have six different font weights. A font weight typically refers to the thickness or thinness of a font, as well as styles like italic.
In the first post, I mentioned that I will only put together files with a certain amount of font-weight files. This is because, as you can see from the image, they are necessary.
Now, you could Google your favorite font, and find it in only one weight -- regular. Then you could apply that regular weight font to the twenty different types of font files that are found natively in /system/fonts so that all of your font files are now replaced by that one font weight file you found.
What you'll have then is a mess, in my opinion. Apps layouts are designed with certain font weights in mind. Aside from that, they are also used to draw the users attention to certain things. Important things are usually bold. Headers are usually bold. Italics can emphasize a point in a different way. Some things, like the app drawer, for example, used a condensed font so that as many letters as possible can be used in the relatively small space allotted for icon text. As you can see in my image, even though I've used an Ubuntu condensed font for the app drawer, there still isn't enough room. Imagine if I used a non-condensed font. I might only get half of what I'm getting now.

My point is this: You should really try to find a font that has as many weights as possible.
Below is a list of all the native fonts in /system/fonts:
Roboto-Black.ttf
Roboto-BlackItalic.ttf
Roboto-Bold.ttf
Roboto-BoldItalic.ttf
Roboto-Italic.ttf
Roboto-Light.ttf
Roboto-LightItalic.ttf
Roboto-Medium.ttf
Roboto-MediumItalic.ttf
Roboto-Regular.ttf
Roboto-Thin.ttf
Roboto-ThinItalic.ttf
RobotoCondensed-Bold.ttf
RobotoCondensed-BoldItalic.ttf
RobotoCondensed-Italic.ttf
RobotoCondensed-Light.ttf
RobotoCondensed-LightItalic.ttf
RobotoCondensed-Medium.ttf
RobotoCondensed-MediumItalic.ttf
RobotoCondensed-Regular.ttf
Well, that's not entirely accurate. Those files listed are the important ones. Replacing those files will, for the most part, replace everything that you'll see.
Notice that there are twenty different font weights available for the Roboto font. This is the ideal situation.
I'll go ahead and say that you're not likely to find a font that you really like that comes with even half that many weights.
Hence, in the first post I said to have at least these weights in any fonts that you want me to make: bold, bold italic, regular or medium, regular italic or medium italic. In my opinion, those weights should be the absolute least amount that you settle for. And, I'll say it again, even finding a font with just that many weights is difficult.

So, let's say you've found a font that has at least the weights that I recommend. Continue on to the next section.

Replacing the Stock Font Files with Your Own

For our example, we'll use the SonySketch font that someone requested I make.
Below are the font files that were the zip I was given:
SonySketch-Bold
SonySketch-BoldItalic
SonySketch-Italic
SonySketch-Regular

Now technically, that's a little short of what I asked for; however, "Italic" can be taken to simply mean regular italic or medium italic, so it works.
Next, we have to figure out how to turn those four font files into the twenty stock files.
Basically, we'll just copy the SonySketch files, then rename the copies to match stock fonts.
So, lets start with the bold.
I know from double clicking the font files on my PC and then viewing the font that, the "Black" font/weight is a bold or bold-ish weight. So, we'll use the SonySketch-Bold for the Roboto-Black file, Roboto-Bold, and RobotoCondensed-Bold.
I'll copy the SonySketch file and rename that copy to Roboto-Black. Now we have a Roboto-Black file that is actually the SonySketch-Bold font.
I'll repeat that step two more times for the other Roboto bold font weight files.
I'll use the SonySketch-BoldItalic for Roboto-BlackItalic, Roboto-BoldItalic, and RobotoCondensed-BoldItalic (since the SonySketch didn't come with a condensed weight).
In the end, this is what we did:
SonySketch-Bold --> Roboto-Black
SonySketch-Bold --> Roboto-Bold
SonySketch-Bold --> RobotoCondensed-Bold
SonySketch-BoldItalic --> Roboto-BlackItalic
SonySketch-BoldItalic --> Roboto-BoldItalic
SonySketch-BoldItalic --> RobotoCondensed-BoldItalic

Now, let's look at the SonySketchRegular.
Since SonySketch didn't come with thin, light, or medium weights, we'll have to use regular for those weights as well.
Following the same copying and renaming scheme from above, we'll do this with the SonySketch-Regular file:
SonySketch-Regular --> RobotoCondensed-Light
SonySketch-Regular --> RobotoCondensed-Medium
SonySketch-Regular --> RobotoCondensed-Regular
SonySketch-Regular --> Roboto-Light
SonySketch-Regular --> Roboto-Medium
SonySketch-Regular --> Roboto-Regular
SonySketch-Regular --> Roboto-Thin

We're almost there.
We have one more SonySketch file to deal with -- SonySketch-Italic.
Again, since we dont have thin-italic, light-italic, or medium-italic weights, we'll have to use the one SonySketch-Italic file for all of those.
Following the same copying and renaming scheme from above, we'll do this with the SonySketch-Italic file:
SonySketch-Italic --> RobotoCondensed-Italic
SonySketch-Italic --> RobotoCondensed-LightItalic
SonySketch-Italic --> RobotoCondensed-MediumItalic
SonySketch-Italic --> Roboto-Italic
SonySketch-Italic --> Roboto-LightItalic
SonySketch-Italic --> Roboto-MediumItalic
SonySketch-Italic --> Roboto-ThinItalic

That's it! We're done copying and renaming files. Now you should have all twenty stock font files replaced with your own font files.

The last things we need to do is to do the same thing with the GoogleSans-Regular.ttf file. This file is new to Android 8.0, I believe, and it is the file responsible for the clock font.
Since it's a regular font file, just make yet another copy of the SonySketch-Regular file and rename it to GoogleSans-Regular.
We're mostly done. All that's left is that we've got to fix the GoogleSans-Regular file you just made so that you don't get the square character instead of the colon in your lockscreen font.
Keep reading to learn how to do that.

Fixing the Lockscreen Clock Square Issue

Many thanks to @AndroPlus for telling me where to look to fix this file.

Tools Required:
FontForge - https://fontforge.github.io/en-US/ (it's free)

1. Run the FontForge application as administrator (this will allow you to save it to your C: drive, if you want to)
2. You only have a limited number of places to choose when you choose to open a file:
  • C:/
  • Anywhere in your user folder
  • The "Documents" folder
  • Anywhere in the "Users" folder
I work from a secondary drive called F:/Data that FontForge can't get to for some reason. So, I had to move the file I was working with to one of those locations. Just keep that in mind.
3. Find your font file, leave everything as is and click "OK" to open your font file.
openfontfile_zpsycjwjdoi.png

4. Once the file is open, you'll notice a bunch of squares. Some will have letters, numbers, characters, or symbols in them, and some will be empty.
Each one of those squares is called a glyph.
5. Find the glyph with the colon in it. It will usually be near the top mixed in with other symbols like the coma, exclamation point, etc.
6. Once you find the colon glyph, double click on it to open it up in a separate window.
7. Next we need to find the uniEE01 glyph.
This is the glyph that the lockscreen clock font looks to to grab the colon. It's a Google specialized character. Hence, most other fonts won't have it, which is why we get the "character not found" square instead of a colon.​
8. The uniEE01 glyph is usually located nearly at the bottom of the file, although I've seen some files where it's in the middle of the file. Be patient and take your time scrolling.
UNIEE01AtBottom_zpsbdicinxx.png

A word of advice... Keep the FontForge window as small as possible. The more glyphs you can see the slower the window will respond. If you have the FontForge window maximized to the size of your monitor so that you can see a hundred or so glyphs at once, it will be a pain staking effort to scroll to the bottom of the window.​
9. Once you've found the glyph labed EE01, double click on it to open it up.
10. In your secondary window, you should now have two tabs. One will be labeled as "Colon," and the other will be labeled as uniEE01.
colonAndUNIEE01Opened_zpssuuffkvg.png

11. In the secondary window, ensure that the colon tab is in the foreground.
12. With the colon tab in the foreground, go to Edit from the top taskbar, then choose "Copy" from the menu.
colon_copy_zpsskzbt51b.png

13. Then switch to the uniEE01 tab, ensuring that the uniEE01 tab is now in the foreground.
14. With the uniEE01 tab in the foreground, go to Edit from the top taskbar, then choose "Paste."
uniEE01Paste_zpsfsvd95cj.png

15. Ensure that the uniEE01 tab now shows a colon.
colonPastedinUNIEE01_zpsdhzrjjvq.png

16. Close the secondary window. There is no need to save anything form that secondary window. We will save the main file in a minute.
17. Back in the main window, ensure that the EE01 glyph now contains a colon.
ensureColonInUNIEE01_zpsuivknqio.png

18. Assuming that the ee01 glyph now contains a colon, it's time to save the file.
19. Go to File in the top taskbar.
20. From the File menu, choose "Generate Fonts..."
generateFont_zpsawwma1vq.png

21. In the "Generate Fonts" dialog box:
  • Ensure that NO checkboxes are checked. They are not necessary for our purposes.
  • Ensure that the file type is set to TrueType
  • Choose where you want to save the file to
  • Set the name of the file
22. Click the "Generate" button.
generateFileDialogBox_zpsmm82efyv.png

23. You may receive a message that says:
nonstandardEMsize_ignoreMessage_zpsk38fvs1l.png

24. Ignore this message, by just clicking "Yes."
25. If you had already renamed your font file to GoogleSans-Regular before you opened it, and you're naming your edited file the same thing, you will of course get a prompt telling you that the file already exists, and asking you if you want to replace it.
26. Assuming that you do want to replace the file with your newly edited file, click "Replace."
replaceFile_zpsixnvhtvw.png

27. You're finished! You have successfully patched or fixed your font file so that you won't get the lockscreen clock square instead of a colon.
28. Add your newly edited GoogleSans-Regular file to wherever you have all of your other "custom" font files.

Putting it all Together to Make Your Flashable Zip

For the sake of keeping things easy, and because I'm tired of typing at this point, I've attached a flashable font template zip to this post.
Using this template, here's how you put together your flashable zip:
1. Unzip the template zip.
2. Place all of your now customized Roboto font files inside the /system/fonts folder.
3. Place your "fixed" GoogleSans-Regular.ttf file inside the /system/fonts folder.
4. Ensure you have 21 font files inside your /system/fonts folder (20 Roboto files and 1 GoogleSans-Regular file):
fonttemplatefontfiles_zps0c5f1tsv.png

4. If you want to, edit the updater-script file to include your name and anything else you want people to see when they flash your zip. You are going to share it aren't you!? The updater-script can be found in /META-INF/com/google/android.
5. Select both the META-INF and system folders and make them a compressed zip folder:
fonttemplatefontfiles2_zpsjcnwaata.png

6. Name your zip whatever you like, but be sure to include the font name in the title so other people know what it is.
7. Place the zip on your phone, boot into TWRP, and flash away!
8. You've done it! CONGRATULATIONS!
 

Attachments

  • CustomFontFlashableZipTemplate.zip
    140.4 KB · Views: 678
  • FiraSans_Pixel2XL_MadeFor_Stock+CustomROM+Android-P.zip
    5.5 MB · Views: 391
  • Nunito_Pixel2XL_FixedFor_Stock+CustomROMs+AndroidP.zip
    1.5 MB · Views: 279
  • AmaranteFont_ReadyFor_Stock+CustomROM+Android-P.zip
    1.5 MB · Views: 158
  • RopaSans_Pixel2XL_ReadyFor_Stock+CustomROM+Android-P.zip
    894.8 KB · Views: 132
  • Playfair_Pixel2XL_ReadyFor_Stock+CustomROM+Android-P.zip
    2.7 MB · Views: 135
  • BarlowCondensedEXTRABOLD_Pixel2XL_ReadyFor_Stock+CustomROM+Android-P.zip
    1.2 MB · Views: 141
  • BarlowCondensed_Pixel2XL_ReadyFor_Stock+CustomROM+Android-P.zip
    1.2 MB · Views: 199
  • Cyclo_Pixel2XL_ReadyFor_Stock+CustomROM+Android-P.zip
    1.1 MB · Views: 108
  • Tillium-Web_Pixel2XL_ReadyFor_Stock+CustomROM+Android-P+DU12.1.zip
    1.1 MB · Views: 187
Last edited:

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
More flashable zips...


 

Attachments

  • Arima_Madurai_Pixel2XL_8.1.0.zip
    1.5 MB · Views: 299
  • Arsenal_Pixel2XL_8.1.0.zip
    1.9 MB · Views: 212
  • Dosis_Pixel2XL_8.1.0.zip
    1.5 MB · Views: 213
  • Expletus_Sans_Pixel2XL_8.1.0.zip
    686.4 KB · Views: 199
  • SofiaPro_Pixel2XL_8.1.0.zip
    1 MB · Views: 353
  • AlegreyaSans_Pixel2XL_8.1.0.zip
    1.1 MB · Views: 211
  • Raleway_FixedFor_Pixel2XL.zip
    1.4 MB · Views: 197
  • SlatePro_FixedFor_8.1.0.zip
    1.5 MB · Views: 348
  • Storopia_Pixel2XL-StockAndCustomROMs.zip
    814.7 KB · Views: 199
  • Atma_Pixel2XL_FixedForStockAndCustomROMs.zip
    2.3 MB · Views: 290
  • AveriaSansLibre_Pixel2XL_FixedForStockAndCustomROMs.zip
    1.5 MB · Views: 183
  • LobsterTwo_Pixel2XL_FixedForStockAndCustomROMs.zip
    1.9 MB · Views: 188
  • Overlock_Pixel2XL_FixedForStockAndCustomsROMs.zip
    630.1 KB · Views: 216
  • AveriaSerifLibre_Pixel2XL_FixedForStockAndCustomROMs.zip
    1.5 MB · Views: 111
  • Lemonada_Pixel2XL_FixedForStockAndCustomROMs.zip
    1.4 MB · Views: 155
  • SanFrancisco_FixedForPixel2XL_StockAndCustomROMs.zip
    1.4 MB · Views: 825
  • Bariol_FixedForPixel2XL_StockAndCustomROMs.zip
    882.7 KB · Views: 300
  • Roboto-Light_FixedFor_Pixel2XL_StockAndCustomROMs.zip
    3.1 MB · Views: 312
  • OpenSans_FixedForPixel2XL-CustomROMS+AndroidP.zip
    3.1 MB · Views: 438
  • Exo-Font_Pixel2XL_Stock+CustomROM+Android-P_Ready.zip
    1.5 MB · Views: 255
Last edited:

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
Please add walkway bold font if possible
And can i flash the fonts if i just boot twrp and don't have permanent?
I'll fix the file you sent me this evening when I get home from work. If you also want me to compose a zip for you, post all the walkway font files here.

Yes, you can flash the fonts it if you just fastboot boot TWRP and don't have it flashed permanently. However, did you know that beta-2 of TWRP was released? That's the first version that actually works on my phone. If you haven't already, you might want to give that a try for a permanent TWRP.

Sent from my Pixel 2 XL using XDA Labs
 
  • Like
Reactions: Taebom and pa.pn2

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
  • Like
Reactions: Taebom

pa.pn2

Senior Member
Jul 12, 2010
4,367
1,024
Düsseldorf
soundcloud.com
I'll fix the file you sent me this evening when I get home from work. If you also want me to compose a zip for you, post all the walkway font files here.

Yes, you can flash the fonts it if you just fastboot boot TWRP and don't have it flashed permanently. However, did you know that beta-2 of TWRP was released? That's the first version that actually works on my phone. If you haven't already, you might want to give that a try for a permanent TWRP.
Yeah i saw that.maybe ill flash it this evening.
But first step is to flash stock boot image right.
The boot to twrp.flash custom kernel twrp.zip and magisk after i guess
All needed files for the font should be in the zip
I used it on my 6p without issues
 

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
Yeah i saw that.maybe ill flash it this evening.
But first step is to flash stock boot image right.
The boot to twrp.flash custom kernel twrp.zip and magisk after i guess
All needed files for the font should be in the zip
I used it on my 6p without issues
I read somewhere that if you're already rooted and you're going to reflash TWRP, then you need to flash stock boot.img first. However, when I updated to the beta 2 version, I was already rooted and I did not flash the stock boot.img first, and everything went fine. Then I just rerooted using the latest magisk zip and it all went fine.

Sent from my Pixel 2 XL using XDA Labs
 
  • Like
Reactions: Taebom and pa.pn2

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
Yeah i saw that.maybe ill flash it this evening.
But first step is to flash stock boot image right.
The boot to twrp.flash custom kernel twrp.zip and magisk after i guess
All needed files for the font should be in the zip
I used it on my 6p without issues
- In the attached zip is the GoogleSans-Regular.ttf file to add to your zip.
- You also need to make an adjustment to the updater-script your flashable zip because it doesn't work on the Pixel 2 like it is currently. Actually, this might have changed since the Pixel OG. I say this because I tried to flash yours like it was and the font didn't get installed. After making the change below, it worked.
The package extract line:
Code:
package_extract_dir("system", "/system");
Needs to be change to:
Code:
package_extract_dir("system", "/system/system");
Add another level of /system to that line.​

I was going to post the zip, but since you put the package together, you should post it to share it, if you want. I will mention that font in the first post and link to your post with the zip attached. If you post it, also include a screenshot or two so that others can tell what it looks like before they download it.
 

Attachments

  • GoogleSans-Regular_ConvertedToWalkawayFont.zip
    13.2 KB · Views: 167
  • Screenshot_20171127-182826.jpg
    Screenshot_20171127-182826.jpg
    120 KB · Views: 11,942

pa.pn2

Senior Member
Jul 12, 2010
4,367
1,024
Düsseldorf
soundcloud.com
- In the attached zip is the GoogleSans-Regular.ttf file to add to your zip.
- You also need to make an adjustment to the updater-script your flashable zip because it doesn't work on the Pixel 2 like it is currently. Actually, this might have changed since the Pixel OG. I say this because I tried to flash yours like it was and the font didn't get installed. After making the change below, it worked.
The package extract line:

Needs to be change to:

Add another level of /system to that line.

I was going to post the zip, but since you put the package together, you should post it to share it, if you want. I will mention that font in the first post and link to your post with the zip attached. If you post it, also include a screenshot or two so that others can tell what it looks like before they download it.
It's absolutely ok if u post it.its not my font at all lol
Im not the master in editing any script yet.i can post just the screenshot later?
 
Last edited:

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth

Attachments

  • Screenshot_20171127-190731.png
    Screenshot_20171127-190731.png
    130.9 KB · Views: 3,600
Last edited:

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
Just using this post as a reference for Ubuntu screenshots. Don't mind me.
 

Attachments

  • Screenshot_20171126-190145.png
    Screenshot_20171126-190145.png
    153.2 KB · Views: 4,917
  • Screenshot_20171126-190236.jpg
    Screenshot_20171126-190236.jpg
    98.6 KB · Views: 4,655
  • Screenshot_20171126-190550.jpg
    Screenshot_20171126-190550.jpg
    218.9 KB · Views: 4,656
  • Screenshot_20171126-190520.jpg
    Screenshot_20171126-190520.jpg
    247.3 KB · Views: 3,972
  • Like
Reactions: jrbxx7 and pa.pn2

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
Just using this post as a reference for Walkaway font screenshots. Don't mind me.
 

Attachments

  • Screenshot_20171127-192200.jpg
    Screenshot_20171127-192200.jpg
    257.4 KB · Views: 3,345
  • Screenshot_20171127-182826.jpg
    Screenshot_20171127-182826.jpg
    120 KB · Views: 3,547
  • Screenshot_20171127-192246.jpg
    Screenshot_20171127-192246.jpg
    270.5 KB · Views: 3,194
  • Screenshot_20171127-192150.png
    Screenshot_20171127-192150.png
    200.2 KB · Views: 3,342
Last edited:

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth
It's absolutely ok if u post it.its not my font at all lol
Im not the master in editing any script yet.i can post just the screenshot later?
Okay, I posted it in the first post if you don't want to bother with compiling your own, you can just grab it from there.

Sent from my Pixel 2 XL using XDA Labs
 
  • Like
Reactions: pa.pn2

sharkie405

Senior Member
Dec 22, 2008
2,755
1,874
Earth

Attachments

  • Screenshot_20171128-001338.jpg
    Screenshot_20171128-001338.jpg
    255.4 KB · Views: 2,571
  • Screenshot_20171128-001314.jpg
    Screenshot_20171128-001314.jpg
    117.4 KB · Views: 2,621
  • Screenshot_20171128-001327.png
    Screenshot_20171128-001327.png
    194.7 KB · Views: 2,658
Last edited:
  • Like
Reactions: jrbxx7 and mac796

Top Liked Posts

  • There are no posts matching your filters.
  • 39





    FontsHeader2_zpsxmiptvck.png




    I am not responsible for your device.
    You must be rooted.


    So far as I'm aware, the Google Sans font is new for the 8.1.0 preview, or at least it being used for the colon in the lockscreen is new.
    Due to this, the old lockscreen-clock font fix didn't work.
    So, I've made my own flashable font zips with the fix applied.​


    Change Log:

    3/21/18
    - Added Nunito font

    3/16/18
    - Added Open Sans font
    - Added Fira Sans font

    3/11/18
    - Added Roboto-Light font

    2/28/18
    - Added Bariol font
    - Added San Francisco font

    2/23/18
    - Added Atma font
    - Added Storopia font
    - Added Averia Sans Libre font
    - Added Averia Serif Libre
    - Added Lemonada
    - Added Lobster Two
    - Added Overlock

    2/21/18
    - Added Slate Pro font
    - Added Raleway font

    2/17/18
    - Added fix for lock-screen clock issue on custom ROMs

    2/13/18
    - Added Alegreya Sans font

    2/12/18
    - Added Sofia Pro font

    1/21/18
    - Added "Gotham" font
    - Added "China Cat" fixed for Pixel 2/XL font
    - Added "Advent Pro" font
    - Added "Arima Madurai" font
    - Added "Arsenal" font
    - Added "Dosis" font
    - Added "Expletus Sans" font

    1/19/18
    - Added "Tahoma" font

    1/6/18
    - Added "Tinos" font

    1/8/18
    - Added "Google Sans" font

    1/4/18
    - Added "Evolventa" font
    - Updated "HelveticaNeuev2_Pixel2XL_8.1.0" zip with fixed version

    12/10/17
    - Added "Ubuntu Taller" font
    - Added "Merriweather" font

    12/5/17
    - Added "Custom Unrivalled" font

    What are probably going to be frequently asked questions:

    Q: Will this work on 8.0, 7.1.1, or 7.1.2?
    A: So far as I can tell, the GoogleSans font is new for 8.1.0, so the zip will probably work, but the lockscreen clock will probably have the square issue. I would have a full backup of all your stock font files before you try it, if I were you.

    Q: Will this work on my device (that's not a Pixel 2 or 2 XL)
    A: So far as I can tell, the GoogleSans font is new for 8.1.0, so the zip will probably work, but the lockscreen clock will probably have the square issue. I would have a full backup of all your stock font files before you try it, if I were you.

    Q: Do I take request? Can you please make xxxx font work?
    A: Yes, but you will need to do some work as well, and you will have to be patient. I will work on them as time allows.
    Here's what I will need from you:
    1. The font files you want zipped up and posted in this thread. (I'm not going to go searching)
    2. The font files you upload MUST have at least the follow types of files/weights, otherwise I WILL NOT BOTHER WITH IT:
      • Bold
      • Bold Italic
      • Regular or Medium
      • Regular Italic or Medium Italic (not absolutely necessary, but preferred)
    3. If you want your font to really look good everywhere, then you should look for fonts that come with the following weights as well:
      • Thin or Light
      • Thin Italic or Light Italic
      • Condensed-regular or condensed-medium. The more condensed versions the better (eg - condensed-bold, condensed-italic, condensed-light, etc.)

    Custom ROM and Android P Font Fixes

    -Custom ROMs for the Pixel 2/XL apparently don't use the GoogleSans-Regular font for the lock screen clock; hence, the fix that has been applied to all of these fonts does not work on custom ROMs.
    -As far as Android P, Google decided to use some of their GoogleSans-xxxx files in places that they didn't in Oreo. Because they weren't used in previous versions Android (at least as far as anyone was able to tell), they were never thought of as needing to be replaced in custom font zips, and so there are a few spots in Android P where the custom font does not get set properly.

    Don't worry, though. I've got you covered.

    - If the zip you're going to flash says something along the lines of "FixedForStockAndCustomROMS," then it's already been fixed and it will work on a custom ROM.
    - If the title of the zip you're going to flash says anything about "Android P" in it, then it's already been fixed and should work without any issues on Android P.

    Otherwise if the zip title makes no mention of custom ROMs or Android P, you'll need to use this fix.
    AFTER you flash one of these font zips, flash the Pixel2XL_FontFixFor-CustomROMs+Android-P zip from this post: https://forum.xda-developers.com/showpost.php?p=75605109&postcount=373.
    That will fix your lock-screen clock issue when on custom ROMs or Android P.
    So far, it's been verified as working on Nitrogen, Dirty Unicorn, Resurrection Remix and Android P. If you've tried it successfully on other ROMs, please let us know.

    Available fonts so far:

    *All fonts have fully functioning lockscreen fonts, meaning there is no need to apply a fix because I've already done that.
    Ubuntu - screenshots here: https://forum.xda-developers.com/showpost.php?p=74660773&postcount=14
    Walkaway - screenshots here: https://forum.xda-developers.com/showpost.php?p=74660793&postcount=15
    SonySketch - screenshots here: https://forum.xda-developers.com/showpost.php?p=74660698&postcount=13
    Bellota 1.9 - screenshots here: https://forum.xda-developers.com/showpost.php?p=74662699&postcount=19
    Comfortaa - screenshots here: https://forum.xda-developers.com/showpost.php?p=74673323&postcount=30
    Rosemary - link, info, and screenshots here: https://forum.xda-developers.com/showpost.php?p=74683775&postcount=39
    Oswald - screenshots here: https://forum.xda-developers.com/showpost.php?p=74685035&postcount=41
    HelveticaNeueLSTStdUltraLight - screenshots here: https://forum.xda-developers.com/showpost.php?p=74685244&postcount=43
    HelveticaNeuev2 - screenshots here: https://forum.xda-developers.com/showpost.php?p=74685358&postcount=44
    Custom Unrivalled - screenshots here: https://forum.xda-developers.com/showpost.php?p=74748954&postcount=78
    Ubuntu Taller - screenshots here: https://forum.xda-developers.com/showpost.php?p=74803089&postcount=100
    Merriweather - screenshots here: https://forum.xda-developers.com/showpost.php?p=74805195&postcount=106
    Evolventa - screenshots here: https://forum.xda-developers.com/showpost.php?p=75081193&postcount=182
    Google Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75119650&postcount=199
    Tinos - license information, original unaltered font zip, and screenshots here: https://forum.xda-developers.com/showpost.php?p=75131198&postcount=205
    Tahoma - info and screenshots here: https://forum.xda-developers.com/showpost.php?p=75264476&postcount=262
    Gotham - screenshots here: https://forum.xda-developers.com/showpost.php?p=75283655&postcount=267
    Chinacat - info and screenshots here: https://forum.xda-developers.com/showpost.php?p=75283946&postcount=268
    Advent Pro - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288937&postcount=281
    Arima Madurai - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288966&postcount=282 See Post # 3 for zip
    Arsenal - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288969&postcount=283 See Post # 3 for zip
    Dosis - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288976&postcount=284 See Post # 3 for zip
    Expletus Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75288988&postcount=285 See Post # 3 for zip
    Sofia Pro - screenshots here: https://forum.xda-developers.com/showpost.php?p=75546576&postcount=313 See Post # 3 for zip
    Alegreya Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75556402&postcount=315 See Post # 3 for zip
    Raleway - screenshots here: https://forum.xda-developers.com/showpost.php?p=75651095&postcount=400 See Post # 3 for zip
    Slate Pro - screenshots here: https://forum.xda-developers.com/showpost.php?p=75651235&postcount=401 See Post # 3 for zip
    Storopia - screenshots here: https://forum.xda-developers.com/showpost.php?p=75672205&postcount=405 See Post # 3 for zip
    Atma - screenshots here: https://forum.xda-developers.com/showpost.php?p=75672212&postcount=406 See Post # 3 for zip
    Averia Sans Libre - screenshots here: https://forum.xda-developers.com/showpost.php?p=75672228&postcount=407 See Post # 3 for zip
    Averia Serif Libre - screenshots here: https://forum.xda-developers.com/showpost.php?p=75674331&postcount=408 See Post # 3 for zip
    Lemonada - screenshots here: https://forum.xda-developers.com/showpost.php?p=75674340&postcount=409 See Post # 3 for zip
    Lobster Two - screenshots here: https://forum.xda-developers.com/showpost.php?p=75674346&postcount=410 See Post # 3 for zip
    Overlock - screenshots here: https://forum.xda-developers.com/showpost.php?p=75674354&postcount=411 See Post # 3 for zip
    San Francisco - screenshots here: https://forum.xda-developers.com/showpost.php?p=75729584&postcount=424 See Post # 3 for zip
    Bariol - screenshots here: https://forum.xda-developers.com/showpost.php?p=75729569&postcount=423 See Post # 3 for zip
    Roboto-Light - screenshots here: https://forum.xda-developers.com/showpost.php?p=75856645&postcount=453 See Post # 3 for zip
    Open Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75878800&postcount=480 See Post # 3 for zip
    Fira Sans - screenshots here: https://forum.xda-developers.com/showpost.php?p=75916664&postcount=494 See Post # 2 for zip
    Nunito - screenshots here: https://forum.xda-developers.com/showpost.php?p=75972277&postcount=510 See Post # 2 for zip
    Amarante - screenshots here: https://forum.xda-developers.com/showpost.php?p=76005243&postcount=555 See Post # 2 for zip
    Ropa Sans - screenshots and information here: https://forum.xda-developers.com/showpost.php?p=76089735&postcount=588 See Post # 2 for zip
    Playfair - screenshots here: https://forum.xda-developers.com/showpost.php?p=76089708&postcount=587 See Post # 2 for zip
    Barlow Condensed - screenshots here: https://forum.xda-developers.com/showpost.php?p=76115431&postcount=598 See Post # 2 for zip
    Barlow Condensed EXTRA BOLD - screenshots here: https://forum.xda-developers.com/showpost.php?p=76115446&postcount=599 See Post # 2 for zip
    Cyclo - screenshots and information here: https://forum.xda-developers.com/showpost.php?p=76179469&postcount=604 See Post # 2 for zip
    Tillium Web - screenshots here: https://forum.xda-developers.com/showpost.php?p=76329859&postcount=645 See Post # 2 for zip

    User submitted font zips. Thank you guys!
    OnePlus font courtesy of @zupastef: https://forum.xda-developers.com/showpost.php?p=75149094&postcount=209
    Proxima Nova, San Fransisco, and Inter UI fonts courtesy of @aj.pai.r: https://forum.xda-developers.com/showpost.php?p=75242775&postcount=244
    Samsung Sans font courtesy of @Amjad.AbdulGhani: https://forum.xda-developers.com/showpost.php?p=75306414&postcount=292



    Flash via TWRP. A Pixel 2 XL 8.1.0 stock-font flashable zip is also attached, in case you want to revert back.
    21
    How to Make Your Own Flashable Font Zips


    Picking the Right Font

    Notice the image below.
    The screenshots are of the following:
    Quick Settings
    XDA Labs
    The Project Fi App
    My app drawer
    FontWeight_Examples_zpsiihlyezq.png

    In just these four snippets we have six different font weights. A font weight typically refers to the thickness or thinness of a font, as well as styles like italic.
    In the first post, I mentioned that I will only put together files with a certain amount of font-weight files. This is because, as you can see from the image, they are necessary.
    Now, you could Google your favorite font, and find it in only one weight -- regular. Then you could apply that regular weight font to the twenty different types of font files that are found natively in /system/fonts so that all of your font files are now replaced by that one font weight file you found.
    What you'll have then is a mess, in my opinion. Apps layouts are designed with certain font weights in mind. Aside from that, they are also used to draw the users attention to certain things. Important things are usually bold. Headers are usually bold. Italics can emphasize a point in a different way. Some things, like the app drawer, for example, used a condensed font so that as many letters as possible can be used in the relatively small space allotted for icon text. As you can see in my image, even though I've used an Ubuntu condensed font for the app drawer, there still isn't enough room. Imagine if I used a non-condensed font. I might only get half of what I'm getting now.

    My point is this: You should really try to find a font that has as many weights as possible.
    Below is a list of all the native fonts in /system/fonts:
    Roboto-Black.ttf
    Roboto-BlackItalic.ttf
    Roboto-Bold.ttf
    Roboto-BoldItalic.ttf
    Roboto-Italic.ttf
    Roboto-Light.ttf
    Roboto-LightItalic.ttf
    Roboto-Medium.ttf
    Roboto-MediumItalic.ttf
    Roboto-Regular.ttf
    Roboto-Thin.ttf
    Roboto-ThinItalic.ttf
    RobotoCondensed-Bold.ttf
    RobotoCondensed-BoldItalic.ttf
    RobotoCondensed-Italic.ttf
    RobotoCondensed-Light.ttf
    RobotoCondensed-LightItalic.ttf
    RobotoCondensed-Medium.ttf
    RobotoCondensed-MediumItalic.ttf
    RobotoCondensed-Regular.ttf
    Well, that's not entirely accurate. Those files listed are the important ones. Replacing those files will, for the most part, replace everything that you'll see.
    Notice that there are twenty different font weights available for the Roboto font. This is the ideal situation.
    I'll go ahead and say that you're not likely to find a font that you really like that comes with even half that many weights.
    Hence, in the first post I said to have at least these weights in any fonts that you want me to make: bold, bold italic, regular or medium, regular italic or medium italic. In my opinion, those weights should be the absolute least amount that you settle for. And, I'll say it again, even finding a font with just that many weights is difficult.

    So, let's say you've found a font that has at least the weights that I recommend. Continue on to the next section.

    Replacing the Stock Font Files with Your Own

    For our example, we'll use the SonySketch font that someone requested I make.
    Below are the font files that were the zip I was given:
    SonySketch-Bold
    SonySketch-BoldItalic
    SonySketch-Italic
    SonySketch-Regular

    Now technically, that's a little short of what I asked for; however, "Italic" can be taken to simply mean regular italic or medium italic, so it works.
    Next, we have to figure out how to turn those four font files into the twenty stock files.
    Basically, we'll just copy the SonySketch files, then rename the copies to match stock fonts.
    So, lets start with the bold.
    I know from double clicking the font files on my PC and then viewing the font that, the "Black" font/weight is a bold or bold-ish weight. So, we'll use the SonySketch-Bold for the Roboto-Black file, Roboto-Bold, and RobotoCondensed-Bold.
    I'll copy the SonySketch file and rename that copy to Roboto-Black. Now we have a Roboto-Black file that is actually the SonySketch-Bold font.
    I'll repeat that step two more times for the other Roboto bold font weight files.
    I'll use the SonySketch-BoldItalic for Roboto-BlackItalic, Roboto-BoldItalic, and RobotoCondensed-BoldItalic (since the SonySketch didn't come with a condensed weight).
    In the end, this is what we did:
    SonySketch-Bold --> Roboto-Black
    SonySketch-Bold --> Roboto-Bold
    SonySketch-Bold --> RobotoCondensed-Bold
    SonySketch-BoldItalic --> Roboto-BlackItalic
    SonySketch-BoldItalic --> Roboto-BoldItalic
    SonySketch-BoldItalic --> RobotoCondensed-BoldItalic

    Now, let's look at the SonySketchRegular.
    Since SonySketch didn't come with thin, light, or medium weights, we'll have to use regular for those weights as well.
    Following the same copying and renaming scheme from above, we'll do this with the SonySketch-Regular file:
    SonySketch-Regular --> RobotoCondensed-Light
    SonySketch-Regular --> RobotoCondensed-Medium
    SonySketch-Regular --> RobotoCondensed-Regular
    SonySketch-Regular --> Roboto-Light
    SonySketch-Regular --> Roboto-Medium
    SonySketch-Regular --> Roboto-Regular
    SonySketch-Regular --> Roboto-Thin

    We're almost there.
    We have one more SonySketch file to deal with -- SonySketch-Italic.
    Again, since we dont have thin-italic, light-italic, or medium-italic weights, we'll have to use the one SonySketch-Italic file for all of those.
    Following the same copying and renaming scheme from above, we'll do this with the SonySketch-Italic file:
    SonySketch-Italic --> RobotoCondensed-Italic
    SonySketch-Italic --> RobotoCondensed-LightItalic
    SonySketch-Italic --> RobotoCondensed-MediumItalic
    SonySketch-Italic --> Roboto-Italic
    SonySketch-Italic --> Roboto-LightItalic
    SonySketch-Italic --> Roboto-MediumItalic
    SonySketch-Italic --> Roboto-ThinItalic

    That's it! We're done copying and renaming files. Now you should have all twenty stock font files replaced with your own font files.

    The last things we need to do is to do the same thing with the GoogleSans-Regular.ttf file. This file is new to Android 8.0, I believe, and it is the file responsible for the clock font.
    Since it's a regular font file, just make yet another copy of the SonySketch-Regular file and rename it to GoogleSans-Regular.
    We're mostly done. All that's left is that we've got to fix the GoogleSans-Regular file you just made so that you don't get the square character instead of the colon in your lockscreen font.
    Keep reading to learn how to do that.

    Fixing the Lockscreen Clock Square Issue

    Many thanks to @AndroPlus for telling me where to look to fix this file.

    Tools Required:
    FontForge - https://fontforge.github.io/en-US/ (it's free)

    1. Run the FontForge application as administrator (this will allow you to save it to your C: drive, if you want to)
    2. You only have a limited number of places to choose when you choose to open a file:
    • C:/
    • Anywhere in your user folder
    • The "Documents" folder
    • Anywhere in the "Users" folder
    I work from a secondary drive called F:/Data that FontForge can't get to for some reason. So, I had to move the file I was working with to one of those locations. Just keep that in mind.
    3. Find your font file, leave everything as is and click "OK" to open your font file.
    openfontfile_zpsycjwjdoi.png

    4. Once the file is open, you'll notice a bunch of squares. Some will have letters, numbers, characters, or symbols in them, and some will be empty.
    Each one of those squares is called a glyph.
    5. Find the glyph with the colon in it. It will usually be near the top mixed in with other symbols like the coma, exclamation point, etc.
    6. Once you find the colon glyph, double click on it to open it up in a separate window.
    7. Next we need to find the uniEE01 glyph.
    This is the glyph that the lockscreen clock font looks to to grab the colon. It's a Google specialized character. Hence, most other fonts won't have it, which is why we get the "character not found" square instead of a colon.​
    8. The uniEE01 glyph is usually located nearly at the bottom of the file, although I've seen some files where it's in the middle of the file. Be patient and take your time scrolling.
    UNIEE01AtBottom_zpsbdicinxx.png

    A word of advice... Keep the FontForge window as small as possible. The more glyphs you can see the slower the window will respond. If you have the FontForge window maximized to the size of your monitor so that you can see a hundred or so glyphs at once, it will be a pain staking effort to scroll to the bottom of the window.​
    9. Once you've found the glyph labed EE01, double click on it to open it up.
    10. In your secondary window, you should now have two tabs. One will be labeled as "Colon," and the other will be labeled as uniEE01.
    colonAndUNIEE01Opened_zpssuuffkvg.png

    11. In the secondary window, ensure that the colon tab is in the foreground.
    12. With the colon tab in the foreground, go to Edit from the top taskbar, then choose "Copy" from the menu.
    colon_copy_zpsskzbt51b.png

    13. Then switch to the uniEE01 tab, ensuring that the uniEE01 tab is now in the foreground.
    14. With the uniEE01 tab in the foreground, go to Edit from the top taskbar, then choose "Paste."
    uniEE01Paste_zpsfsvd95cj.png

    15. Ensure that the uniEE01 tab now shows a colon.
    colonPastedinUNIEE01_zpsdhzrjjvq.png

    16. Close the secondary window. There is no need to save anything form that secondary window. We will save the main file in a minute.
    17. Back in the main window, ensure that the EE01 glyph now contains a colon.
    ensureColonInUNIEE01_zpsuivknqio.png

    18. Assuming that the ee01 glyph now contains a colon, it's time to save the file.
    19. Go to File in the top taskbar.
    20. From the File menu, choose "Generate Fonts..."
    generateFont_zpsawwma1vq.png

    21. In the "Generate Fonts" dialog box:
    • Ensure that NO checkboxes are checked. They are not necessary for our purposes.
    • Ensure that the file type is set to TrueType
    • Choose where you want to save the file to
    • Set the name of the file
    22. Click the "Generate" button.
    generateFileDialogBox_zpsmm82efyv.png

    23. You may receive a message that says:
    nonstandardEMsize_ignoreMessage_zpsk38fvs1l.png

    24. Ignore this message, by just clicking "Yes."
    25. If you had already renamed your font file to GoogleSans-Regular before you opened it, and you're naming your edited file the same thing, you will of course get a prompt telling you that the file already exists, and asking you if you want to replace it.
    26. Assuming that you do want to replace the file with your newly edited file, click "Replace."
    replaceFile_zpsixnvhtvw.png

    27. You're finished! You have successfully patched or fixed your font file so that you won't get the lockscreen clock square instead of a colon.
    28. Add your newly edited GoogleSans-Regular file to wherever you have all of your other "custom" font files.

    Putting it all Together to Make Your Flashable Zip

    For the sake of keeping things easy, and because I'm tired of typing at this point, I've attached a flashable font template zip to this post.
    Using this template, here's how you put together your flashable zip:
    1. Unzip the template zip.
    2. Place all of your now customized Roboto font files inside the /system/fonts folder.
    3. Place your "fixed" GoogleSans-Regular.ttf file inside the /system/fonts folder.
    4. Ensure you have 21 font files inside your /system/fonts folder (20 Roboto files and 1 GoogleSans-Regular file):
    fonttemplatefontfiles_zps0c5f1tsv.png

    4. If you want to, edit the updater-script file to include your name and anything else you want people to see when they flash your zip. You are going to share it aren't you!? The updater-script can be found in /META-INF/com/google/android.
    5. Select both the META-INF and system folders and make them a compressed zip folder:
    fonttemplatefontfiles2_zpsjcnwaata.png

    6. Name your zip whatever you like, but be sure to include the font name in the title so other people know what it is.
    7. Place the zip on your phone, boot into TWRP, and flash away!
    8. You've done it! CONGRATULATIONS!
    15
    All apologies to everyone for being Mia the last month or so. Life just got super hectic, and I just needed the mental breaks when I had the time to just chill. In any event, I plan on going hard on XDA this upcoming weekend. I will do my best to go back through the threads since my last post and catch up on any requests, questions, Etc. So, if you're got any questions or requests that you haven't bothered posting because you've noticed I've been missing. Go ahead and post them up I will address them this weekend. Sorry again to anyone who felt that I left you in a lurch.

    Sent from my Pixel 2 XL using XDA Labs
    14
    More flashable zips...


    12
    Android P and Custom ROM Font Fix
    - The "Pixel2XL_FontFixFor-CustomROMs+Android-P" zip will fix the lockscreen-clock issue on custom ROMs. So far it's been verified as working on Nitrogen, Dirty Unicorn, and Resurrection Remix ROMs.
    - It also fixes a couple of problem spots when these fonts are used on Android P.
    - All of the other zips attached to this post are specifically for DirtyUnicorn v12.1+. See that section below for more information.

    If you're interested in how it's fixed, read below.

    For the custom ROM fix, what the script does is copy the GoogleSans-Regular.ttf file to the /tmp directory, then copies it back to /system/fonts but renames it to Roboto-Regular.ttf instead, overwriting the original Roboto-Regular file. Lastly, it deletes the copy of the GoogleSans-Regular.ttf file from your /tmp directory.

    For the Android P fix, it does the same thing as the above paragraph except it involves a few more files. They are copied to /tmp, then copied and renamed back to /system/fonts, then deleted from /tmp. See the code below to view which files exactly are replaced.

    The reason this works for the custom ROM fix is that the GoogleSans-Regular file that I've been fixing to fix the clock issue on our stock versions is just a renamed copy of the Roboto-Regular file. Since everything about those two files is the same except that glyph EE01 contains a colon in the GoogleSans file, simply turning a copy of the GoogleSans-Regular file into Roboto-Regular fixes the issue on custom ROMs.

    The reason this works for Android P is that Google decided to use some of their GoogleSans-xxxx files in places that they didn't in Oreo. Because they weren't used in previous versions Android (at least as far as anyone was able to tell), they were never thought of as needing to be replaced in custom font zips. This zip simply copies the already customized Roboto files and turns them into all the GoogleSans-xxxx files found in /system/fonts, overwriting the ones that are there. Technically, it was only the GoogleSans-Medium file that was the culprit, but while I was at it, I figured simply replacing them all would be better and more thorough.


    Code:
    show_progress(1.34, 8);
    ui_print(" ");
    ui_print("########################################");
    ui_print("#           Pixel 2 XL Fonts           #");
    ui_print("#     Custom ROM & Android P Fixes     #");
    ui_print("#                  by                  #");
    ui_print("#              Sharkie405              #");
    ui_print("########################################");
    run_program("/sbin/sleep", "2");
    ui_print(" ");
    ui_print("Mounting /system...");
    run_program("/sbin/busybox", "mount", "/system");
    run_program("/sbin/sleep", "1");
    ui_print(" ");
    ui_print("Copying files to /tmp folder...");
    run_program("/sbin/cp", "-p", "/system/system/fonts/GoogleSans-Regular.ttf", "/tmp/GoogleSans-Regular.ttf");
    run_program("/sbin/cp", "-p", "/system/system/fonts/Roboto-Bold.ttf", "/tmp/Roboto-Bold.ttf");
    run_program("/sbin/cp", "-p", "/system/system/fonts/Roboto-BoldItalic.ttf", "/tmp/Roboto-BoldItalic.ttf");
    run_program("/sbin/cp", "-p", "/system/system/fonts/Roboto-Italic.ttf", "/tmp/Roboto-Italic.ttf");
    run_program("/sbin/cp", "-p", "/system/system/fonts/Roboto-Medium.ttf", "/tmp/Roboto-Medium.ttf");
    run_program("/sbin/cp", "-p", "/system/system/fonts/Roboto-MediumItalic.ttf", "/tmp/Roboto-MediumItalic.ttf");
    run_program("/sbin/sleep", "1");
    ui_print(" ");
    ui_print("Copying and renaming files to /system/fonts...");
    run_program("/sbin/cp", "-p", "/tmp/GoogleSans-Regular.ttf", "/system/system/fonts/Roboto-Regular.ttf");
    run_program("/sbin/cp", "-p", "/tmp/Roboto-Bold.ttf", "/system/system/fonts/GoogleSans-Bold.ttf");
    run_program("/sbin/cp", "-p", "/tmp/Roboto-BoldItalic.ttf", "/system/system/fonts/GoogleSans-BoldItalic.ttf");
    run_program("/sbin/cp", "-p", "/tmp/Roboto-Italic.ttf", "/system/system/fonts/GoogleSans-Italic.ttf");
    run_program("/sbin/cp", "-p", "/tmp/Roboto-Medium.ttf", "/system/system/fonts/GoogleSans-Medium.ttf");
    run_program("/sbin/cp", "-p", "/tmp/Roboto-MediumItalic.ttf", "/system/system/fonts/GoogleSans-MediumItalic.ttf");
    run_program("/sbin/sleep", "1");
    ui_print(" ");
    ui_print("Deleting files from /tmp folder...");
    delete("/tmp/GoogleSans-Regular.ttf");
    delete("/tmp/Roboto-Bold.ttf");
    delete("/tmp/Roboto-BoldItalic.ttf");
    delete("/tmp/Roboto-Italic.ttf");
    delete("/tmp/Roboto-Medium.ttf");
    delete("/tmp/Roboto-MediumItalic.ttf");
    run_program("/sbin/sleep", "1");
    ui_print(" ");
    run_program("/sbin/busybox", "umount", "/system");
    ui_print("Unmounting /system...");
    run_program("/sbin/sleep", "1");
    ui_print(" ");
    ui_print("Installation complete.");
    ui_print(" ");
    ui_print(" ");
    run_program("/sbin/sleep", "1");
    Dirty Unicorn v12.1+ Specific Fix

    Dirty Unicorn's latest build (v12.1 +) uses the Roboto-Light.ttf file for the lockscreen instead of the default GoogleSans-Regular on stock Android, or Roboto-Regular on most other custom ROMs.

    Unfortunately, because DU's latest build is using a "Light" file for the lock screen, and because none of the "Light" files have ever been "fixed" before, there's is no way that I can think of to put out a generic fix for all fonts. I will have to post fixed custom Roboto-Light files as people on DU let me know about the problem with a given font. You can find font-specific DU 12.1+ font fixes attached to this post.

    Obviously, from here on out as I make new ones, they will be "fixed" for the new DU builds as well.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone