![]() |
#1 |
Connoisseur
![]() ![]() Posts: 91
Karma: 104
Join Date: Nov 2014
Device: Kindle
|
![]()
Problem: Input DOCX with Asian/Latin mixed paragraphs, but resulting EPUB does not contain/reference asian fonts.
Explanation: I have DOCX file, which uses three fonts: Times New Roman, Calibri and MS Mincho (asian). The default fonts are set to Times New Roman/MS Mincho, 12pts. Almost all of the styles are linked to the main style which, again, has explicitely set the fonts like this. The fonts are displayed correctly in Office365, in the Save options I have Embed Fonts/Subset fonts/Do not include system fonts. In the DOCX are 4 fonts included (visible in fonts subdir and in fontTable.xml - three different Calibris and one MS Mincho). I tried all four combinations of subsetting/system fonts. Conversion to EPUB works like a charm, but the resulting file contains 6 fonts: Three Calibri and three Times New Roman. The japanese characters are not "escaped", "styled", or anything, they're just put inline with latin characters... In the original text (document.xml) there are explicit hints the text is eastAsian. Code:
<w:r w:rsidR="009F0743" w:rsidRPr="009F0743"> <w:rPr> <w:rFonts w:hint="eastAsia"/> <w:lang w:eastAsia="ja-JP"/> </w:rPr> <w:t>お手玉</w:t> </w:r> What am I doing wrong? ![]() |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,982
Karma: 27109258
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC docx input doesnt have support for font hints. Feel free to come up with a patch for it, not something I care about personally.
|
![]() |
![]() |
![]() |
Tags |
asian fonts, docx, embedding fonts, word |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 PRS-T1 & Asian Fonts/Unicode | komugi | Sony Reader | 20 | 10-05-2013 11:49 PM |
Kindle 4 NT Asian Fonts? | lacunae | Amazon Kindle | 0 | 12-21-2011 05:18 PM |
Mixed fonts in Calibre output (HTML to anything) | jasonb57 | Calibre | 2 | 09-06-2010 11:01 AM |
Palm, Plucker - mixed fonts on same page | tx_kt | Reading and Management | 0 | 02-27-2007 12:49 PM |