View Single Post
Old 02-09-2015, 03:56 AM   #17
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Patch for Arabic book titles

This patch changes the font style used for book titles from italic to normal, which fixes a problem with displaying book titles in Arabic on the Glo/Aura/AuraHD/H2O. (Edit: I don't think the problem occurs on the Touch/Mini.)
Spoiler:
Code:
<Patch>
patch_name = `Book titles font style normal`
patch_enable = `yes`
#
# This patch changes the font style used for book titles displayed in the
# library, search results, etc. from italic to normal. This works around the
# problem of the system fonts missing italic glyphs for Arabic.
#
# Book title in details view
replace_string = D12511, `font-style: italic;`, `font-style: normal;`
#
# Search term in search results view
replace_string = D7D573, `font-style: italic;`, `font-style: normal;`
#
# Book title in library view
replace_string = D842F0, `font-style: italic;`, `font-style: normal;`
</Patch>


Edit: Note that the Arabic glyphs will not be displayed immediately after restarting the device, it is necessary to open a book and maybe to access the Aa font settings menu before they will be available to the rest of the UI.

Last edited by GeoffR; 02-10-2015 at 08:50 PM. Reason: Updated patch to also change titles in book details view
GeoffR is offline   Reply With Quote