Closed ezterry closed 13 years ago
Missing fix:modify frameworks/base/data/fonts/Android.mk like:
#
#
#
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS)
copy_from := \ DroidSans.ttf \ DroidSans-Bold.ttf \ DroidSansArabic.ttf \ DroidSansHebrew.ttf \ DroidSansThai.ttf \ DroidSansFallback.ttf \ DroidSerif-Regular.ttf \ DroidSerif-Bold.ttf \ DroidSerif-Italic.ttf \ DroidSerif-BoldItalic.ttf \ DroidSansMono.ttf \ Clockopia.ttf
ifeq ($(INCLUDE_FONT_DROIDSANSJAPANESE),true) copy_from += DroidSansJapanese.ttf \ MTLc3m.ttf endif
copy_file_pairs := $(foreach cf,$(copy_from),$(LOCAL_PATH)/$(cf):system/fonts/$(cf)) PRODUCT_COPY_FILES += $(copy_file_pairs)
will be fixit.
Um the idea is in the dream-sapphire or sapphire device is to update the following:
INCLUDE_FONT_DROIDSANSJAPANESE := false #or just remove NO_FALLBACK_FONT := false
Once that is done the fonts included will change, but I still need to then embed the fonts in a squashfs.
That or I'll become lazy .. skip installing all the fonts in favor of a pre-made squashfs
For now if you have font problems just push DroidSansFallback.ttf into /system/fonts/
You may also wish to delete DroidSansJapanese.ttf and MTLc3m.ttf for some more space.
got it thx
put the fonts in sqf after with a script basically this is what cm's squishier script does.
ages ago CM nightlies weren't being squished and it was causing problems as system was full so I made a script http://pastebin.com/UPwZsRDp
I have since added fonts to it
it is far from perfect , doesn't do the pngcrush or strip libs like squisher/opticharger but it's a cheap way of squishing fonts which will do for now
I have squisher ... its a barely balanced card in a card castle. And I think its just a simple make target to the make script above.
With kernel modules in the sqf I don't think I care about stripping them down further (only saved 200k or so from the uncompressed versions) Actually may just reduce the number of kernel modules [by building them in] and change the kernel from GZIP to LZMA compression as is being done in pershoot's kernel and kernels on other devices.
I've actually did add it into the build, see the updated: frameworks/base/data/fonts/Android.mk
If there are still box symbols or errors let me know in a new issue we will re-work the font list.
See: http://forum.xda-developers.com/showpost.php?p=10818801&postcount=750
I've noted some of the languages in the rom are currently missing correct fonts.
This requires two things: 1) compressing the fonts (fonts.sqf) 2) swapping in the DroidSansFallback.ttf (and for now removing the Japanese font as I think its included in the newer Fallback)
NexusS uses: Clockopia.ttf DroidSansFallback.ttf DroidSerif-Bold.ttf DroidSans-Bold.ttf DroidSansHebrew.ttf DroidSerif-BoldItalic.ttf DroidSans.ttf DroidSansMono.ttf DroidSerif-Italic.ttf DroidSansArabic.ttf DroidSansThai.ttf DroidSerif-Regular.ttf
And builds for the same languages currently included in this DS version