ezterry / manifest-gingerbread-DS

Dream/Sapphire android manifest for Gingerbread
26 stars 8 forks source link

Missing fonts + Compress (sqf) fonts #3

Closed ezterry closed 13 years ago

ezterry commented 13 years ago

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

ogowoo commented 13 years ago

Missing fix:modify frameworks/base/data/fonts/Android.mk like:

Copyright (C) 2008 The Android Open Source Project

#

Licensed under the Apache License, Version 2.0 (the "License");

you may not use this file except in compliance with the License.

You may obtain a copy of the License at

#

http://www.apache.org/licenses/LICENSE-2.0

#

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

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.

ezterry commented 13 years ago

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.

ogowoo commented 13 years ago

got it thx

ghost commented 13 years ago

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

ezterry commented 13 years ago

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.

ezterry commented 13 years ago

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