Custom fonts on YotaReader - YotaPhone

I made a small Xposed module that allows to use your own custom fonts on YotaReader, instead that one of the 8 hardcoded ones.
Usage:
install the Xposed module;
create a folder called "Fonts" on root of sd-card;
add your custom font (for the moment add just 1 font family; you can add more later) in the "Fonts" folder (do NOT create any folder within "Fonts" folder, just put the font files in it); for best results add 4 files for each font, corresponding to the styles: regular, bold, italic, bold-italic;
restart phone
open YotaReader
open font selection dialog within a book
now, you should see the custom font you loaded as the first font in the list of 8 fonts presented (replacing the first native font);
Limitations:
you can add a maximum of 8 font families;
custom font will replace the native ones of YotaReader, starting from the first one in the list;
not sure what font format are supported by YotaReader, but at least TTF and OTF should be supported;
Moreover, I verified that native fonts just have the regular style and they miss bold, italic and bold-italic styles. You can easily verify this opening the attached epub (I had to compress to a zip file, since XDA doesn't allow to attach epub files), that shows how is rendered the text in the four possible font styles.
Using a native font, you can see that a fallback font (sans serif) is used for bold, italic and bold-italic styles (while for regular one the selected font is used).
Instead, using a custom font, all the 4 styles are recognized and used (il present).
I also attached a sample font family (Sil Gentium) that you can use to test the module.
I tested the module on YD206 with MM firmware, anyway I think that it should work also on LP firmware since the reader app is the same.
Of course, you need Xposed framework for this to work.

Thank you for this useful contribution. Just wish to know if it's possible to replace other fonts without replacing the first font? For example, is it possible to keep Roboto while replacing PT Sans.
Thanks!

Can someone please confirm that this works on the EU version (6.0.1-EU1.1.47mx)?
For me the reader does not want to start (when this xposed module is selected), but since I am new to Xpose, I might be doing something wrong...

Related

Removing ttf file

Actually I installed a chinese system with builtin font and input in my X01HT, and then I installed new font to replace the old font.(new font is a standalone cab file)
So after I reset my device, I am supposed I can remove the old font file , which is ttf from window\
However in fact, the system doesn't allow me to do that (I used resco explorer)
It says some process locked this font file.
Does anyone have any idea how to fix it problem since I have no memory space to keep 2 fonts files in my system.
Million Thanks!

Woot! Changing default icons in WM6.1

First of all, the start menu icon
i got help from this post: http://forum.xda-developers.com/showpost.php?p=2271995&postcount=8
and u can see how i got it on my BA
Want it??
the file is attached too. (signed already)
rename the file as shellres.96.dll
and paste this file in ur \Windows folder in ur device
Ofcourse u have to make a backup of originall shellres.96.dll too
Njoy this nice gray start menu icon
MORE ICONS ON THE WAY, I AM STILL DISCOVERING bout the icon changing thingi.
POST UR ICONS IN "PNG" with transparent background and in a multiple of 8 width and height that is 16x16, 24x24, 64x64, 128x128, 256x256.
so that i may get more time in modding rather in finding
GL all and happy modding. Atlast folder icon changing will work
Step 2, Changing the default folder icons
here are they
EDIT: the resource hacker is showing the folder icons in two pairs (16x16 and 32x32). If i am gonna replace one, the whole icon group gets changed. so uptill here no luck. will some body help me making a dll file with two icons (one for 16x16 and other for 32x32)
One small note,
the complete name of the file being replaced is shellres.96.dll.0409.mui
The reason I am making this comment is because depending on the rom (WWE or any other country ID), this might change. For instance, WWE is 0409, but I believe that German was 040C.
Other than that, good post. Let us know when you are able to change the system folders.
the mui exists there for localization thingi
I have used shellres.96.dll, the one i have pasted here and the screenshot is of my BA's. So I say authentic. I havent tried ur method since i am going fine
Now about the folders, the problem comes with pointing two icons in same icondump (i-e i need to have a file (like shell32.dll in windows for PC) which should only contain 32x32 folder icon (normal) and 16x16 icon (small). I dont know how to make such icon resource files. I have all PNG sets for my desired icons. I straight away convert them through an activeX based converter. Then THE PROBLEM IS ABOUT DUMPING TWO .ICO FILES IN ONE .ICO

Adding or replacing fonts in WM 6.5.x

I'm trying to replace with Tahoma and Tahoma Bold fonts in the ROM I use with versions that support the full set of unicode characters.
However, I can't find a way to overwrite the existing fonts as it won't let me delete them or rename them. I've also tried creating a cab, but it says I don't have permission to install it.
Anyone have any suggestions?
Many thanks
Same question, is there a cab that can do that? I'm trying to change my font to Helvetica is it possible
Have you seen this thread?
http://forum.xda-developers.com/showthread.php?t=635891
However Those cabs don't seem to change my softkey or top right digital clock fonts.
I have tried to install the default fonts from that thread, but it said I did not have permission.
Perhaps I'll try one of the other fonts and see if that works.

[How-To] Change Status Bar Icons

I have changed the status bar icons for a few time, and just want to share it to people who wants to personalize it by themselves but don't know how with their own taste without asking the others to do it for them
What you need:
- WinRar
- Gimp 2 - http://www.gimp.org/downloads/
- ADB or something like RootExplorer, I prefer ADB
File to be modified:
SystemUI.apk - you can find it in system/apps/
First, you need to get the SystemUI.apk out of your favorite ROM, I use WinRar, and then you open the apk file also by Winrar. Extract the 'drawable-mdpi' folder in 'res' folder. You will see the icons for back, home, option, etc. in there.
Now, edit the default icon with Gimp 2, open the icon, click Del to remove the image but still keep the template for your new icon. Open the your favorite icon (with Gimp 2 of course), and resize it to the size of the ROM's icon (it's under the Image option), mostly choose Height 48pixel and Width will be set automatically, just remember to look at the size of the default icon. After you resized your favorite icon, just Ctrl + C on your icon and then Ctrl + V on the the template, it will put your new icon to the center of the template. Last step for this is to save it back to the 'drawable-mdpi' folder. I suggest you to use .png icons and save the templates for your future uses FYI, you should have a 'pressed' template.
Last, open the SystemUI.apk and "Added files to ..." to the .apk file, add the modified 'drawable-mdpi' folder to the .apk, then you are done with the SystemUI.apk. If you want to have a fresh ROM flash, then just put the modified SystemUI.apk back to the ROM and flash; or you can "adb push" it to your tablet or over-write it, then you restart your tablet to see the change
That's it, first time you try it, it's going to take sometimes, but after you have all the templates ready, it's gonna be so quick for you to make any changes.
Let me know if you have any question, I'm no expert in Graphic Designing or Programming but will try to answer your questions
Here are some examples which I'm currently using them, have fun:
I thonk its like that
http://forum.xda-developers.com/showthread.php?t=1301401
and
http://forum.xda-developers.com/showpost.php?p=16820709&postcount=9
didn't know there are...

Bold fonts...

How do I configure the system fonts to be bold? Thanks
dilgit said:
How do I configure the system fonts to be bold? Thanks
Click to expand...
Click to collapse
Look in system/ fonts
Pull the bold font onto your computer rename that font to all the other main fonts ex copy bold, make it regular, copy bold make it italic etc.
Then paste the ones you made back into fonts and override the originals. Or throw your modified ones into a magisk module so you don't have to alter the system

Categories

Resources