Closed 9viz closed 3 months ago
There is no problem when the author defines the fonts for the reader to use so both the bigger PDF and MOBI work well they have clearly defined font or "fall back". the ePubs are often modified using Calibre where it normally supplies its own fonts and the files is often not including suitable resource or poorly defined.
So a font has been included but is not applied by SumatraPDF ?
Edge over a period of time had ePub support in Old Edge long time prior to version 111 and from version 111 was optional but seems to be removed again in 126 - 129 as it no longer works for me !
Will the new Microsoft Edge support ePub? Is that planned for? We are not supporting ePub in the new Microsoft Edge and there is no immediate plan to support it. Additionally, ePub support has been removed from Microsoft Edge Legacy. However, Microsoft has partnered with companies such as DAISY consortium to bring accessible ePub apps to the Microsoft Store. You can review the current set of recommended apps in the Microsoft Store collection.
FWIW, the problem remains even if the epub file does not provide a font (and no CSS file or any such directives to specify a font to use). I can share such a file if required, these are produced by me without the use of calibre or any such software.
@9viz That was my point unless the font is supplied & / or applied correctly the page does not include any characters, So the problem is how the font is to be applied. MuPDF is not like Edge or other ePub reader, but needs the fonts defined.
Edge is having to use Aptos !
but MuPDF does use the font included however SumatraPDF is not.
MuPDF in my Linux laptop simply uses the system font if no font is specified. This is what I would expect from SumatraPDF as well.
@9viz Do you know which windows font is appropriate for Tamil language? I meant the file name of the font file?
I can implement the fallback of reading the system font but don't know which one is it or how to detect the right font.
@kjk Thanks! As per this page https://learn.microsoft.com/en-us/windows/apps/design/globalizing/loc-international-fonts, the only Tamil font is Nirmala UI which I can confirm.
I tested the latest prerelease and I can confirm that Tamil text is rendered whether or not a font to use is provided. Thanks for your quick response!
SumatraPDF version
Describe the bug Just like #4377, Tamil text in the TOC is rendered just fine but Tamil text in the epub content itself is rendered as tofu blocks. This is Windows 11.
To Reproduce
Expected behavior Tamil text is rendered.
Screenshots