And Bible - Fonts build

81 views
Skip to first unread message

Martin Denham

unread,
Jul 20, 2011, 3:07:25 PM7/20/11
to and-...@googlegroups.com
I have built a And Bible - Fonts which provides the ability for users to override the fonts used for a module.

To try it out
  1. Install the new version on your mobile
  2. Start And Bible, download SBLGNT and note the squares that represent missing font characters
  3. Stop And Bible - Settings/Manage applications/And Bible/Force stop
  4. Create this folder on your Android mobile:  mnt/sdcard/jsword/fonts
  5. Copy the attached fonts.properties file which contains 'SBLGNT=GalSILR.ttf' to the above folder
  6. Get GalSil21.zip
  7. Extract GalSilR.ttf from the zip and copy to mnt/sdcard/jsword/fonts
  8. Start And Bible and check that SBLGNT now displays correctly
Now you can associate different modules with other fonts by updating the properties file and copying the required font file to the fonts folder.

Please let us know what works and what doesn't.  Hopefully a list of fonts can be built to automatically download selected fonts to mobiles to help display certain modules or languages.

Best regards
Martin
fonts.properties

Mario Bertrand

unread,
Jul 20, 2011, 6:18:39 PM7/20/11
to and-...@googlegroups.com

Hi Martin,

It's working well for me. Screenshot include.

Mario Bertrand

Le 20 juil. 2011 15:07, "Martin Denham" <mjde...@gmail.com> a écrit :
screenshot-1311200042693.png

Mario Bertrand

unread,
Jul 21, 2011, 10:41:21 PM7/21/11
to and-...@googlegroups.com
Le mercredi 20 juillet 2011 à 20:07 +0100, Martin Denham a écrit :
> Stop And Bible - Settings/Manage applications/And Bible/Force stop

I had encounter a problem not being able to switch from SBLGNT to any
another document, If it could help someone else, I also cleared data:

Settings/Manage applications/And Bible/Clear data

--
Mario Bertrand

Martin Denham

unread,
Aug 26, 2011, 5:18:25 PM8/26/11
to and-...@googlegroups.com
Hi Mario,

I can't think what caused this.  Can you reproduce it?  Has anybody else had a similar error?

I am now picking this up again after a long holiday.

Thanks
Martin

Mario Bertrand

unread,
Aug 26, 2011, 8:03:59 PM8/26/11
to and-...@googlegroups.com
Le vendredi 26 août 2011 à 22:18 +0100, Martin Denham a écrit :
> Hi Mario,
>
>
> I can't think what caused this. Can you reproduce it? Has anybody
> else had a similar error?
>
>
> I am now picking this up again after a long holiday.
Hi Martin,

Not yet. I didn't build the new one. I'm using the old one and it's
working well. Will try this tomorrow and give a report on it.


--
Best regards,

Mario Bertrand

Mario Bertrand

unread,
Aug 27, 2011, 11:00:08 AM8/27/11
to and-...@googlegroups.com
Le vendredi 26 août 2011 à 22:18 +0100, Martin Denham a écrit :
> Hi Mario,
>
>
> I can't think what caused this. Can you reproduce it? Has anybody
> else had a similar error?
>
>
> I am now picking this up again after a long holiday.

Hi Martin,

I tested the new build this morning and everything looks fine, except in
document menu where we choose language I see a square instead of E in
Ellenike (sorry don't have the Greek letter here), see attached image
from ddms.

I was not able to reproduce the problem the first time I installed the
new SBLGNT fonts. I don't have much time to repeat the whole process of
deleting and reinstalling everything.

--
Mario Bertrand

Ellenike.png

Petr Peňáz

unread,
Dec 30, 2012, 5:29:34 PM12/30/12
to and-...@googlegroups.com
Hi,
I tried the installing procedure on my Galaxy S3, but I am not allowed to create new folders in mnt/sdcard folder. Can you help me to solve it?

Petr Penaz

Martin Denham

unread,
Dec 31, 2012, 7:56:30 AM12/31/12
to and-...@googlegroups.com
Hi Petr,

I can't think of any reason you are unable to create new folders on mnt/sdcard.  Are you doing it via Windows File Explorer after connecting using a USB cable?

You realise the e-mail you are replying to is quite old.  There is some information about font override on this wiki page.  A lot of people have successfully set fonts for specific books and languages so there should be no problem.

Which book or language are you attempting to set the font for?

Best regards
Martin

Petr Penaz

unread,
Jan 1, 2013, 5:50:30 AM1/1/13
to and-...@googlegroups.com
Hi, Martin,
Thank you for your answer. 

As to creating the new folder in my device, I have tried two ways:
1. Total Commander for Android - it shows the following folder structure:
/mnt
  /sdcard
      /Android
         /data
            /net.bible.android.activity
               /files
                   /fonts
/sdcard
      /Android
         /data
            /net.bible.android.activity
               /files
                   /fonts
/storage
   /sdcard0
         /Android
            /data
               /net.bible.android.activity
                  /files
                      /fonts
As you can see, the /sdcard folder is reflected three times: once within the /mnt folder (which can be seen, but is not accessible to any change by Total Commander), an outside, once in root and once in the /storage folder.
2. Windows File Manager via USB cable. It shows similar structure with one exception: not all folders in the root are displayed, among them the /mnt is missing. Thus I can choose between /sdcard and /storage/sdcard0, the rest is obviously identical. 
Please register the /fonts folder placed in the structure in a possition different than that one which you propose. I wonder where the font should be actually placed?

As to the successful installing Greek fonts: I have many ancient Greek books in my device and have no problem with them using different Unicode fonts. Unfortunately, when I try to open the Greek NT, SBL Edition in your application (language: Ἑλληνική), it seems not to be using the default system font (which is a Unicode .ttf in my case), and the diacriticized Greek charatecters are not displayed in that font. Consequently, some parts of your application do display the Greek correctly - when not in the main window and thus the system font appears e.g.: 
- in comparing translations, the compared verse copied in a special window is displayed correctly, unlike the body text in the main window; 
- the same is true for the indication of the language: the word Ἑλληνική is displayed correctly, unlike the text which is in this language).

With my best wishes for the New Year
Petr Penaz

Martin Denham

unread,
Jan 2, 2013, 6:50:13 PM1/2/13
to and-...@googlegroups.com
Hi Petr,

For manual font override you should be using the fonts folder in /mnt/sdcard/jsword/fonts as described in the wiki.  You may possibly be prevented from accessing the fonts folder under sdcard/Android/... if you have not rooted your phone because these folders are managed by Android apps - I can't fully explain it but see a similar situation on my phone, but you should never manually update anything under sdcard/Android.

There is a known issue affecting font use in Compare Translations which I still need to fix.

I think I have also just discovered a new issue which may just affect the latest release of JellyBean. The symptoms are that entering Download Documents always attempts to download Fonts.properties but the file never appears in the Fonts folder because renaming from the temporary download file to the real file quietly fails.  I would be interested to hear of any people experiencing this - You may just initially notice that SBLGNT or KhmerNT do not have a custom font.  I have started working on a fix for this (fileCopy instead of fileRename).

Best regards
Martin
Reply all
Reply to author
Forward
0 new messages