[Q] Rectangles instead of characters with Ubuntu Font - Optimus One, P500, V General

Hi everyone,
while I'm customizing my O1, I wanted to change the font.
So googling around I've found and wanted to try the ubuntu font.
All went well with fontchanger and a reboot, but now I have a problem: in long app titles, for example, little rectangles are shown after the three dots, looking ugly.
Looking around xda I've found another user with the same problem, but no fix.
I have even changed manually the other Droidxxxxx font with the same from ubuntu, the one remaining are the droidhebrew and droidthai, but all still the same.
Can someone give me an hand?

m4dbra1n said:
Hi everyone,
while I'm customizing my O1, I wanted to change the font.
So googling around I've found and wanted to try the ubuntu font.
All went well with fontchanger and a reboot, but now I have a problem: in long app titles, for example, little rectangles are shown after the three dots, looking ugly.
Looking around xda I've found another user with the same problem, but no fix.
I have even changed manually the other Droidxxxxx font with the same from ubuntu, the one remaining are the droidhebrew and droidthai, but all still the same.
Can someone give me an hand?
Click to expand...
Click to collapse
I have that tried to and give up ... it doesnt matter what TTF you use, we
ends up with these ugly rectangles. maybe there is a TTF problem with pure android fonts and "windows/mac/linux" - fonts?

Happened to me to with the same font. I don't know why it happens.

It's really a pity because I like the look of this font on O1
Thanks anyway, I will look around for a possible fix and if i find it I'll publish it here too
Inviato dal mio LG-P500

It's only a problem with some fonts. It all hapens because there are different types of fonts - for example Verdana and Tahoma are very often used in web pages and shouldn't display rectangles as they support almost all languages and characters, ALGERIAN and Pieces of Eight are design fonts and should display boxes in almost all occasions and Segoe UI and Ubuntu are interface fonts which means there should not be any problem with them.
I am currently using Segoe UI (Proprietary font, you can copy it from Windows Vista or 7 (or Windows 8 if you are a prerelease maniac)) and I have absolutely no squares or boxes or question marks - all because I am using only the default font. Not bold or semibold or italic, because the other ones give me boxes in rare occasions.
I'll try to find a fix for the Ubuntu font. I'll probably just search for a Ubuntu font where all boxes are replaced with emply spaces.
Edit: Just visited http://font.ubuntu.com and downloaded the fonts... applied the Light version (Ubuntu-L from the archive) and everything worked fine. It's maybe due to a version change or some other glitch... By the way, the standart Ubuntu font (Ubuntu-R) worked fine too. I've attached the fonts just in case you are too lazy to download the whole archive... Just remove the .docx extension.

Ianis G. Vasilev said:
... Just visited http://font.ubuntu.com and downloaded the fonts... applied the Light version (Ubuntu-L from the archive) and everything worked fine. It's maybe due to a version change or some other glitch... By the way, the standart Ubuntu font (Ubuntu-R) worked fine too. I've attached the fonts just in case you are too lazy to download the whole archive... Just remove the .docx extension.
Click to expand...
Click to collapse
Well Ianis G. Vasilev, I'm not so noob: I've downloaded the latest whole font archive (0.80) with all the fonts inside: Medium, Regular, Italic and so on... Then with Font Changer I've applied only Ubuntu-R(egular) to see how it could look. After reboot all seems to be ok, but when I've opened Titanium Backup I noticed the little rectangles in trunked names after the 3 dots. So I've manually set the other .ttf from the advanced section of Font Changer, then reboot, but nothing changed. For me it's strange that some characters are missing from the Ubuntu font, since it's used all over the world with its distro, so I decided to ask here.
Now I can only try other font, with displeasure since I really like the look of the Ubuntu font on O1. And yes, I'm not the only one as you can see some posts above and from some search on XDA...
I think I'm coming back to the 300 fonts thread and start to look for other nice font to use instead of the stock

Hi all,
this is my first post in xda-developers. Rectangle shape means, that operating system is trying to display some character, but there is no glyph shape defined for that character inside ttf file. In this case operating system displays glyph shape of .notdef glyph. And .notdef glyph is usually defined as empty rectangle.
Simple solution is to change .notdef glyph in ttf file, so it does not contain any shape. I've prepared two ubuntu font files for you - Ubuntu-Light.ttf and Ubuntu-Regular.ttf, because I've found these two most aesthetics replacement for stock android DroidSans.ttf and DroidSans-Bold.ttf
Just for record - both fonts are from ubuntu font pack version 0.80

Related

[Q] Custom font on rooted Droid X not working in bold

I have a rooted Droid X which I'm trying (somewhat successfully) to change the fonts used by the OS. I'm using Type Fresh to rename custom fonts to DroidSans.ttf and DroidSans-Bold.ttf. It works with every single font I've tried with the exception of one (the one that I really want). Basically it works perfectly except any bold text comes up as extremely blurry and choppy, and just looks really bad in general. I've tried 5 other fonts and they all work fine in bold and regular.
Here's the link to the font. Is there anything special about this font that would make it work incorrectly, only in bold?
Well, never mind, I can't link because this is a new account on this site. You can find it by going to dafont.com and searching for Prototype.
Bring up my post

Larger font??

Has anyone figured out how to use a bigger system font on this phone? I tried the older font zip from the OG but the install fails.
The higher resolution in the 3d is nice, but the tiny system font is a problem for me.
Copy the fonts in using root explorer and change permissions to match the others.
You could raise the dpi, I don't know what it would look like though. I tried changing the font using that same method myself and the phone crashes on boot up. I didn't change the permissions, I didn't think I had to.
Flash the single font file
Those of us that just recently started needed reading glasses can sympathize.
Download Font Changer from the Market. It's pretty idiot proof as it always allows a reinstall of the default system font if you screw things up. Has a great "preview" feature that lets you see just how big the fonts are to install. It doesn't specifically say the 3D is supported but I can confirm it works with a rooted ViperROM. I didn't need to do any of the renaming things either.
Good collection of free fonts from here. Just download them and unzip the .ttf files to the .fontchanger directory on the SD card.:
http://www.fontsquirrel.com/
Experimented with a few different fonts, a couple of the "bigger" fonts would be cut off on the bottom or top depending on what application I was in. I ended up settling with the Luxi-Sans font and am pretty happy with it. Don't need my glasses scrolling through my call directory anymore!
Here's the direct link to the Luxi-Sans font I'm using:
http://www.fontsquirrel.com/fonts/download/Luxi-Sans
Rydah805 said:
Copy the fonts in using root explorer and change permissions to match the others.
Click to expand...
Click to collapse
Thanks for the information guys!
I will try these ideas.
Rydah805, would you describe in more detail how to do the above?
Thanks again.

[SOLVED] Pattern Lock Screen: How do I change the clock font and dots?

UPDATE: All info in this thread summarized here: [GUIDE] Pattern lock tweaks - Wallpaper Brightness, Pattern Lock Dots, etc.
Rooted phone running Cognition 1.5.1. I am using a pattern lock so I have the standard Samsung lockscreen.
How can I change the clock font on the pattern lock screen? It looks very out of place compared to the other fonts.
Can I make the pattern lock dots smaller or more transparent? I don't like how it covers up almost all of my wallpaper. I know CyanogenMod has an option to make the pattern lock dots completely invisible. I don't really want that either, I just want them to be less obstructive.
Thanks in advance!
You can't change them afaik! You can always use third party lockscreen app like Widget Locker to get your desired lock screen.
I figured out how to change the clock font. Simply replace the Clockopia.ttf in /system/fonts. You can also use the Font Changer app, available on XDA or Market: http://forum.xda-developers.com/showthread.php?t=874658
However I noticed that my replacement clock font did not seem to line up properly. I think this is a common problem with replacing Clockopia.ttf. So you might need to adjust your font with something like FontForge first. Check out the guide here: http://forum.xda-developers.com/showthread.php?t=990853
UPDATE: This thread on Rootzwiki gives a good description of the Clockopia alignment problem and how to fix it. Basically, use a font editor to replace the glyphs in the Clockopia.ttf with the glyphs from your favorite font.
Still investigating the pattern lock dots.
Figured out the pattern lock dots! The files are in the framework-res.apk, under res\drawable-hdpi. There are two files you need to edit:
btn_code_lock_default.png -- This is the white dot in the middle
indicator_code_lock_point_area_default.png -- This is the dark circular background of the dot
I reduced the size of the white dot by 50% and used a clear transparent background so it doesn't block the wallpaper. Files are attached below in case anyone wants to use these.
One more discovery today. Normally the pattern lock wallpaper is not as bright as the original -- there's a dim or dark filter over it. To change this, decompile framework-res.apk (need to use apktool or apk_manager), and edit res\layout\keyguard_screen_unlock_portrait.xml.
On line 4, change android:background="#70000000" to android:background="@color/transparent"
Compile framework-res.apk and put it back into system\framework. Reboot and you should see that the pattern lock wallpaper is much brighter!
Also I've made another set of pattern lock dots. For this one, I reduced both the white middle dot and the outer ring by 50%. Then I increased the transparency of both and made the outer ring a lighter gray. So now the dots are larger, but even less intrusive. I've attached the files below, plus a screenshot.
Thanks a lot for the background transparency trick ! That was exactly what I was loogking for.
Also, may I add something just for information if ppl need it :
There are other files if you want a complete edit :
the ones you told about :
btn_code_lock_default.png (the small dot in the center)
indicator_code_lock_point_area_default.png (the black circle around)
The pngs that shows up when the pattern is the wrong one :
indicator_code_lock_point_area_red.png (the circle around)
indicator_code_lock_drag_direction_red_up.png (the arrow showing the direction)
And if you use "visible pattern" in the options, these are the green ones :
indicator_code_lock_point_area_green.png
indicator_code_lock_drag_direction_green_up.png
btn_code_lock_touched.png (the small dot in the center, touched version)
One more thing, if you're only editing pngs, you don't need apk tool, a simple unzip with 7zip is possible.
Thanks for the modification ideas.
I am using a Htc Desire on dGB aosp rom but just to add to this thread. In the keyguard_screen_unlock_portrait.xml, I changed:
android:background="#70000000" to android:background="@drawable/patternlock_background"
Added an image called patternlock_background.png to the drawable-hdpi folder.
Made some of the images mentioned in the previous posts transparent.
And came up with this:
Obviously, I still need to edit other aspects of that screen to tidy it up.
Great work LfcFan1977! I would be really interested in seeing more wallpapers that incorporate the pattern lock into their design. There could be some pretty cool ideas by mixing a pattern lock wallpaper with custom pattern dots and lines.
Yea, I have been wanting this kind of mod ever since I got my Android.
Here's a few ideas:
Galaxy with stars/rockets/shuttles/astronauts/planets/moons.
Dot to dot of a gingerbread man.
Flowers with the honeycomb bee.
Treasure maps and pirates.
Football.
Homer Simpson and donuts.
Pacman.
Anyway, I had a bit more of a play with the xml/images and got this.
Hi,
a few month ago I investigated the size of the background image to fit the pattern dots, and after a few experiments I saw that android was doing a bit of resizing, even if the image was exactly the screen size.
What worked for me, is to make an image smaller than 800 in height (763px to be precise) and 480 in width (regular width of 1 screen). But when done editing, I stretch its height back to 800. Then, when applying within gallery ("use as..."), it stretch it back to undeformed.
I made a template in photoshop, for those who are interested, also with my actual pattern background. Still can't post urls here, so...it's hosted at mediafire.com :
Code:
/?fo04gtvp82y1xw1 (the template)
/?82txu5qxdea6usb (the background)
Wow, this thread is a great resource for customizing the lockscreen, and it's rather painless (not much APK tool messing to do, if simple unzip, rezip works, wonderfull )
This is going into my bookmarks
I wish I would have found this thread sooner. I was looking for which files to edit for the buttons but found them elsewhere. I still have one question, though. Does anyone know how to change the path color? I can't find which file it is located in. TIA.
I can only assume the colour is applied by something in the framework.jar but as my understanding of smali coding is practically none, I can not figure it out.
I was thinking that maybe re-posting all the previous information and the above question in the android themes thread may be better. I do not think any of it is device or rom specific and we may need a wider audience in order to resovle questions like the last one.
I can't find the path color in the xml or png files so it must be something in smali code. Moving to the Android themes forum is a good idea. I am going to summarize everything and repost it in that forum.
Check out the new thread here! http://forum.xda-developers.com/showthread.php?t=1330063
A little help
This line about android:background is in keyguard_screen_unlock_portrait? I think it's keyguard_screen_password_portrait

Ubuntu font workaround

When using Ubuntu font many users see rectangles in different places, that don’t belong there. They come from the .notdef character which in that very font has a rectangle shaped outline. This character appears when the font doesn’t contain a character for the codepoint requested. It seems like some apps use codepoints different from usual spacing characters to show empty room: e.g. with launcher pro in the app drawer long names are shortened with an ellipsis after which those squares appear. The reason why using other fonts doesn’t show these squares is, that some fonts only have an empty space at .notdef, so no outline appears. One can verify this by using the DroidSansNotdef.ttf which I attach. There I’ve only added an outline to the .notdef character and you’ll get the same behaviour as with the Ubuntu font.
UbuntuAndroidfix.ttf has an empty space in .notdef so it isn’t visible. Nevertheless, this is only a workaround for a bug that’s somewhere else.
Edit: As shown below, the real reason is missing U-FEFF in the font, so it is a font bug. Attached you find all four styles (Ubuntu regular, italic, bold and bold italic) with the added character.
20.4.12 — New version: added spacing characters U-2000—U-200F to fix some more box-char appearances.
Basically after searching a bit more i found this workaround: http://forum.xda-developers.com/showpost.php?p=16895848&postcount=269 It seems better. But thank you anyway!
Of course this is better, it’s not only a workaround, it’s a fix.
I attach a new version of the fixed font with the added glyph. At least the Droid Sans that I downloaded from Google webfonts (to be sure that I have the latest...) doesn’t contain it.
Edit: Attachment removed, new attachment in first post.
Yeah thats right. But which program do you use to edit the font?
I used the Font Creator and the output size of the font is 312kb (instead of 335kb of the original ubuntu font). Your font is about 680kb. I used the droidsans.ttf from ICS platform (v1.0 build 114) and it did contain the glyph
I use fontforge and I'm doing font design in my spare time. But I've never thought about file sizes. I'll have a look at it later.
Sent from my GT-I5800 using Tapatalk 2
ggdu said:
I use fontforge and I'm doing font design in my spare time. But I've never thought about file sizes. I'll have a look at it later.
Sent from my GT-I5800 using Tapatalk 2
Click to expand...
Click to collapse
Nice Have you made a font?
I'm working on EB Garamond, my main project. I can't post a link yet, but you'll find it easily via google.
Sent from my GT-I5800 using Tapatalk 2
h i like the font. Nice!
The font is really good!
I love Greek & Ancient Greek letters in your font (i like the curves) but italic Greek just isn't my type. I think it should be less space between some letters.
Great work
How to use it.. I am Kyrillos Rom v10.1..
pavankadam said:
How to use it.. I am Kyrillos Rom v10.1..
Click to expand...
Click to collapse
Just flash the v10.1.1 update.
kyrillos13 said:
Yeah thats right. But which program do you use to edit the font?
I used the Font Creator and the output size of the font is 312kb (instead of 335kb of the original ubuntu font). Your font is about 680kb. I used the droidsans.ttf from ICS platform (v1.0 build 114) and it did contain the glyph
Click to expand...
Click to collapse
I’ve found the reason for the bigger size. I’ve overseen to untick the old style kern table option. Now it’s only 273,4kb. I’ll upload it together with bold and italic.
kyrillos13 said:
h i like the font. Nice!
The font is really good!
I love Greek & Ancient Greek letters in your font (i like the curves) but italic Greek just isn't my type. I think it should be less space between some letters.
Great work
Click to expand...
Click to collapse
Thank you! The italic is far away from ready, especially greek and cyrillic still need alot of work.
pavankadam said:
How to use it.. I am Kyrillos Rom v10.1..
Click to expand...
Click to collapse
If you don’t want to reflash you can also use a font installer program like https://play.google.com/store/apps/details?id=com.jrummy.font.installer
kyrillos13 said:
Yeah thats right. But which program do you use to edit the font?
I used the Font Creator and the output size of the font is 312kb (instead of 335kb of the original ubuntu font). Your font is about 680kb. I used the droidsans.ttf from ICS platform (v1.0 build 114) and it did contain the glyph
Click to expand...
Click to collapse
Thanks so much for the fixed ubuntu font. Looks great on my Live with Walkman™. Can I make a request though?
I see the same box character on the attached font. Can you help me fix it like you did for the ubuntu font, please?
Thanks so much!
SoloRazr said:
Thanks so much for the fixed ubuntu font. Looks great on my Live with Walkman™. Can I make a request though?
I see the same box character on the attached font. Can you help me fix it like you did for the ubuntu font, please?
Thanks so much!
Click to expand...
Click to collapse
I will fix it tomorrow
SoloRazr said:
Thanks so much for the fixed ubuntu font. Looks great on my Live with Walkman™. Can I make a request though?
I see the same box character on the attached font. Can you help me fix it like you did for the ubuntu font, please?
Thanks so much!
Click to expand...
Click to collapse
You’re welcome!
The thing about the squares is, they show up wherever a glyph is found which doesn’t have a representation in the font. So it depends on where you see the box character. With the fixed Ubuntu font for example you’ll see many boxes if you want it to display Vietnamese because it lacks a whole block of multiple accented characters which will be added in a later development stage. The Droid fonts you attached will fail for many more languages because it only contains the code points of ISO-8859-1 which is oriented at western european languages (it doesn’t even contain a Euro symbol). If that is the problem, the simple fix won’t help you, one would have to know which characters you are missing to do something about it.
The second problem is: what is the license of the fonts? There’s no licence information so it’s not clear if one may change anything about the font.
There’s an Android logo font which contains the FEFF character and many more (incl. greek and cyrillic): http://forum.xda-developers.com/showpost.php?p=3771562&postcount=86 — perhaps this helps.
Thanks to both of you guys!
I can't remember which site I downloaded the font from but its really clean compared to the android logo font so I liked it.
New version as reaction on more box-sightings in the Kyrillos Rom thread. In fact the character U-2009 (thin space) was missing. I added the whole block of (non)spacing characters from U-2000 up to U-200F.
Non-vietnamese UI-elements should hardly show boxes again.
For downloads visit first post.
ggdu said:
I'm working on EB Garamond, my main project. I can't post a link yet, but you'll find it easily via google.
Sent from my GT-I5800 using Tapatalk 2
Click to expand...
Click to collapse
could you add these chars too:
ČŠŽčšž
i mean to EB Garamond font u made?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Hercolubus Rom v 2.2
powered by
Hillbeasts test 002 kernel.zip
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rkoby13 said:
could you add these chars too:
ČŠŽčšž
i mean to EB Garamond font u made?
Click to expand...
Click to collapse
They are already present in the font. If you look at the specimen (https://github.com/georgd/EB-Garamond/blob/master/specimen/Specimen.pdf?raw=true) on p.3 you find a czech example that shows all three of them (at least in lowercase).
ggdu said:
They are already present in the font. If you look at the specimen (https://github.com/georgd/EB-Garamond/blob/master/specimen/Specimen.pdf?raw=true) on p.3 you find a czech example that shows all three of them (at least in lowercase).
Click to expand...
Click to collapse
thanks for reply & linky...i like ur font very much
edit: @ggdu....is the font itself avaliable for download allready?
that would be nice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sent from Galaxy
Hercolubus Rom v 2.2
powered by
Hillbeasts test 002 kernel.zip
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What is the font logo in Android L?

Does anybody know the new font in Android Logo for the future versions of Android? Please refer the attached image of the new logo. Thanks
Here is it,looks similar,so i think its right
----------
------
-CALIBAN666- said:
Here is it,looks similar,so i think its right
----------
------
Click to expand...
Click to collapse
I already have it. I'm actually looking for the exact one. Anyway thanks buddy.
This has probably been answered elsewhere, but the Lollipop logo font is simply called 'and'. It has two typefaces, light and black. It was made bay a company called A2type specifically for Google. It's license makes it non-redistributable but it can be extracted from the Androidify apk under framework/res/fonts.
Unfortunately, the font is not available as a standard ttf to be installed as a system font on Android. and-light is available only as an .otf. and-black on the other hand is a ttf font which can be installed on Android, but both font typefaces suffer from an extreme vertical offset that causes text to be off center or cut off throughout the interface. In order to make the font usable, someone would pretty much have to copy the glyphs onto a new font with proper spacing in order for it to look correct, which would be a considerable undertaking. Which really is a shame, because and is a very attractive font and would make the perfect compliment to the new Lollipop UI.
Lollipop Logo Font
Update:
Well, if you want something done, you have to do it yourself. I took the liberty of "fixing" this font, and I created light, regular, bold and italic typefaces. Enjoy!!!
Note, there are a few bugs that occurred from the conversion process which I will fix as I find time.
Download the font here:
https://www.dropbox.com/s/fdk38fti3bal925/Android%20Font.zip?dl=0
UPDATE 5/2/15
I've fixed quite a few errors like the trailing e at the end of words, the percent sign and various alternate characters showing up in the place of certain punctuations.
https://www.dropbox.com/s/b39y3hfqw287wdg/Android%20Light.ttf?dl=0
Did you only fix the Light version?

Categories

Resources