Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

How do I correct font rendering PPI in Indesign for iPhone high resolution Epub?

Community Beginner ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

From Adobe Stock, I purchased the template  Classic Book for Reflowable EPub Books

I used this to create an indesign document set up for intent "Mobile" with resolution of 1125px 2436px, iPhone X.

 

At 14 points, the font is rendering to the display  as below.  This is much to small for anyone to read on a 5" iPhone X. It appears that the font is rendering points as pixels, and on todays' devices pixels are smaller than 72 per inch. So how do I cause the fonts to ender at the correct PPI for display in InDesign?

devopsatappproject_0-1653142666726.pngexpand image

 

 I realize as a reflowable ePub, this will change on the device, but I still need to be able to work with a reasonable facsmile of the design within the desktop application.

 

If the answer is to change the font size, is there a way to do this globally across all styles? 

 

TOPICS
EPUB , Type

Views

957
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

I have never been much of a fan of using templates of any kind, even those from high-quality/premium sources. But maybe that's just me.

 

If the template is indeed defining font sizes in pixels, it's obsolete. You might be able to fix it, but honestly, for a simple flowing-text book (novel, narrative, basic nonfic) you can do your own layout from scratch and have more control and fewer problems. I'm not sure that makes sense, since if ID can define font sizes in px, it's a feature I've never encountered.

 

First, look into the generated EPUB — it's just a ZIP file, use any utility — drill down to the CSS folder and examine the default CSS file. If the fonts are defined in pixels, you could adjust these values using a custom CSS file, but (again, honestly) I'd chuck it and start over with a simple document format that is not in any way "told" it's for web, EPUB or screen. The one thing the export and template should NOT be doing is building the document for that specific screen and resolution (if that's part of the workflow) — it means the doc will not display correctly on any other display or reader. Use a standard page size and font sizes; EPUB will take care of the display and 'liquidity.'

 

ETA: I just opened a new doc for Mobile, 1100x2400 or so, and the base font, defined as 12pt, is so tiny on my screen it's greeked. This is not the path to successful doc development.

 

If the CSS uses points, as it should, you can try adjusting the document sizes in ID. There is a peculiar aspect to EPUB (and Kindle) in that the defined body font size is used as the 1X value for all text scaling; it should be defined as 1rem (or 1em) and nothing else. That's how the readers start parsing and defining the text sizes.

 

Also, Apple's EPUB readers are... idiosyncratic. You might check the EPUB in other, more standard readers (Thorium Reader is pretty much the baseline) to see if the problems persist

 

More questions welcome.

 

—

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

quote

I have never been much of a fan of using templates of any kind, even those from high-quality/premium sources. But maybe that's just me.

Most definitely not just you. Most of them are trash and they've been dumbed down even if they were created properly by an expert.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

Is the file using web fonts?

have you looked in to using adobe fonts instead?:

https://community.adobe.com/t5/indesign-discussions/how-to-embed-a-font-in-epub-format/m-p/11009577#...

 

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 23, 2022 May 23, 2022

Copy link to clipboard

Copied

For now i'm specifying adobe OTF fonts and seeing built-in kindle fonts in the output.  Based on limited research the consensus seems to be that font embedding is not possible in the kindle environment outside of hiring a service bureau to help.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2022 May 23, 2022

Copy link to clipboard

Copied

It's possible to get fonts into Kindle. It is, however, difficult and unstable and strongly disrecommended. The reader is not 'passive' but does many active things to the document, the way old-school browsers used to apply their own ideas even to straightforward web code.

 

You can fight this uphill battle (see: Sisyphus), or just relax to a completely different medium that offers plenty of design options using a default font set.

 

If you want electronic pages that look just like printed ones... use PDF.

 

—

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

Hi @devops at app-project , I think one thing to consider is Pixels in InDesign are a Ruler Unit measurement and don’t represent resolution. If you change the ruler units for your document you will see that its output dimensions are 15.625" x 33.833". Points are a print output dimension, so 14pt relative to your 15.625" x 33.833" page is very small when the page is forced into the iPhoneX 2.75" x 5.65" physical dimensions:

 

Fixed ePub Export, Apple’s Books on the right:

 

Screen Shot 27.pngexpand image

 

 

If I setup a document closer to the target device’s physical dimensions 14pt text looks more like its 100% print output dimensions on that device:

 

Screen Shot 28.pngexpand image

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

Unless it's for a very specific, narrow purpose, reflowable EPUB should not be designed scaled to a particular device, screen size or resolution. A proper reader for each device will scale the content appropriately — based on that "body text = 1X" rule.

 

EPUB etc. =/= print or fixed screen resolution, and should not be developed or constrained in that model.

 

If you want a fixed layout, use PDF instead.

 

—

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

It's a reflowable epub. Document size is quite literally meaningless! Every epub reader is a bit different but they all allow the reader to choose not just the actual font but the font size as well.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

Yes, I think this is a key point. " I still need to be able to work with a reasonable facsmile of the design " There isn't a design, really. You have to give up the idea, and focus on the content, since it will look different on all devices. (That's not to say the template is a good one).

 

InDesign is all about fixed design, so using it to design reflowable work is forcing it to do what it isn't made for. I suggest you make some quick sample documents and try them on a WIDE range of devices and reading apps. Don't use InDesign to get any clue what it looks like.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

ID is excellent for reflowable doc work as long as you understand the end nature of the material, just as it's fine for print books, posters, interactive PDF and the other wide spectrum of end docs. Books and long docs are already "flowable" if not dynamically reflowable; it's just a matter of keeping your view of page layout flexible.

 

There isn't any tool I know of that really works in the 'liquid' model and provides advanced editing and layout control, other than Dreamweaver (with limitations) and ID (with limitations) or Word (with many limitations). E-books are just not a well-supported medium yet, much like web design was still a complicated PITA ten years ago (and well over ten years into the medium).

 

—

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 23, 2022 May 23, 2022

Copy link to clipboard

Copied

My "design" is to display two stacked rectangles with text set inside.   This is pushing Kindle "advanced typesetting" to its' outer limits, but so far seems doable, I've even been able to get rounded rectangles.  Monospace is an issue becuase Indesign is listing "serif" as the "fallback" in the font family for courier, and that's just wrong.   I have to manipulate the CSS.  Using an anchored text frame is pain but I've not been able to otherwise Indesign to output a DIV.

 

So the bottom line is I need enough of a preview to check on things like text breaks and pagination.

 

devopsatappproject_0-1653330917466.pngexpand image

 

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2022 May 23, 2022

Copy link to clipboard

Copied

Okay, several things.

 

"Anchored frames are a pain" — they are also the only way to get a text or graphics frame to stay with the text flow. You can't simply stick a frame on a page and expect the exported HMTL flow to "remember" where it goes. EPUB and Kindle must be one (1) continuous text flow, with any non-text objects anchored in place.

 

Editing CSS is a given for anything beyond flowing novel text with a few chapter headings and bold/italic. Again like the old days of web design (and not all that much differently now), the visual design does not necessarily translate to clean HTML/EPUB code for anything but that simplest kind of layout. You do have to edit style definitions to include monospace; I don't know why ID has that quirk. (You can also define script and fantasy, for EPUB use. But ID turns everything into sans/serif.)

 

Things like boxed text are complicated in direct ID export, although you can do it. The biggest lack is that there's no way to export padding (space between objects and the text frame); you have to add that in CSS. Things like rounded corners are a little hit or miss, depending on which ID feature you're using; again, they're trivial in CSS.

 

If you're doing a book with relatively complex layout, code snippets, etc., it is fairly straightforward to turn a clean print layout into a clean EPUB export. But you have to follow the rules, the first of which is "one text flow, everything anchored."

 

—

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 24, 2022 May 24, 2022

Copy link to clipboard

Copied

So how would do you recommend tagging a manuscript that requires anhored frames?   It appears that there is no way to do this short of getting into IDML.   Or going back into Indesign and manually creating anchored text frames.   The input parser on Amazon converts style-based ruled paragraphs from a Microsoft Word doc, to the required inline divs.  However, Indesign, while offering both object and paragraph styles, does not seem to offer a way to tag input files.  If you are averaging two anchored text frames per page, the workflow and the proofreading workflow are multiplied.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 24, 2022 May 24, 2022

Copy link to clipboard

Copied

LATEST

There is no shortcut to a properly structured file. If you didn't anchor your images and text frames, there's no path to a successful EPUB/Kindle import other than 'going back into InDesign and anchoring them.' (Although I suppose there might be some fantastically convoluted script-based solution.)

 

There are only three paths to Kindle: direct Word upload, Word-to-HTML-to-upload, and ID-to-EPUB-to-upload. (I am ignoring the build-a-bear EPUB approach and ID-to-HTML.)

 

For all the "ease" that direct Word upload seems to offer, and noting that the process is heavily weighted to make this approach easy, it means taking what Word+Kindle Previewer want to give you. If you can't make it happen with Word formatting, it basically can't happen. That this path has some automation to get around amateur limitations doesn't make it worthwhile for anyone else.

 

Without knowing more specifics about your project, I'd suggest:

  1. Create object styles for each type of image or text frame in your doc. Optimize each one for the content and look you want. Make sure these styles are consistently applied without overrides.
  2. Anchor each image and text frame to the end of the immediately prior or otherwise appropriate paragraph. Don't get tricky with layout; just center them between paragraphs.
  3. Experiment with the Object export options, especially Fixed vs. Relative, to see what gets you the best export to EPUB overall. (Use a neutral reader like Thorium if a pass through Previewer isn't quick enough.)
  4. If you're lucky, one setting or the other, plus adjustment of the image sizes as placed in the doc, will get you the result you want. If not, you are going to have to go into any "unsuitable" images and set the object export options for each, or all of that type.

 

And you'll certainly have to do some CSS tweaking to get things like borders around your text frames and other styles just right. No visual tool I know of exports perfect EPUB code.

 

And, I am not sure you're comfortable with tags/styles; maybe I am misreading your posts but if every paragraph in your doc doesn't have a defined style with no overrides, it will be that much harder to get to a successful result. Particularly in ID, absolutely every element in a doc should have a paragraph style or object style, with all text overrides applied with character styles... no exceptions.

 

ETA: it is possible to edit the XHTML code to add divs around material, but it's tedious and I have rarely found it necessary. If you get all material into one flow with anchored elements, there's rarely a need to go in and create such content blocks.

 

—

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

I’m seeing page dimensions have a significant affect on the default view for both a fixed and reflowable ePub Exports on my iPad Air.

 

iPad Screen captures from 2.75" x 5.6528" (198px x 407px) page exported to Reflowable ePub

 

 

IMG_0178.jpegexpand image

 

vs. 15.625" x 13.833" (1125 x 2436):

 

 

 

 

IMG_0176.jpegexpand image

 

 

 

 

 

 

 

 

 

 

There is also a default difference with fixed 2.75" x 5.6528" (198px x 407px) :

 

IMG_0180.jpegexpand image

 

 

vs. 15.625" x 13.833" (1125 x 2436):

 

IMG_0179.jpegexpand image

 

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 21, 2022 May 21, 2022

Copy link to clipboard

Copied

Well, of course you'll see differences if you export to FXL. It fundamentally constructs each page as a hard element, just like print or export to PDF.

 

But export to reflowable doesn't contain any page size data at all. Most readers don't even honor the margin settings. There are no pages and no structure like them, just the flowing content. Just like web HTML.

 

You will see some variation on two points: the way the base font size (nominally 1em) is interpreted, and the size of images if they are exported with a relative scaling, which will set their size relative to the balance of placed size and margin size. All this means is that if you change your working page size, you may have to change the image scaling options and (sometimes/rarely) the base text size.

 

Go ahead and take the EPUB code apart. Ain't no page info of any kind in there. 🙂

 

And... if you're using the Apple reader, it's well known to be "better" —"try harder" — "be smarter than" most EPUB readers and do nonstandard things with the presentation. So it's not the best tool to evaluate how the export is managed.

 

—

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 22, 2022 May 22, 2022

Copy link to clipboard

Copied

Here's an example of how EPUB/Kindle rescales things according to the base font. In this example, the body text is set at 12pt; Heading 1 is 36pt; Heading 2 is 24pt.

 

In the CSS file, I verify that the definitions are set at 1, 2 and 3 rem. I then export it as-is, and with no other change than body text to 2, 3 and then 0.5rem. Here's wha' hoppen:

 

Body text = 1 rem

1rem.jpgexpand image

 

Body text = 2 rem

2rem.jpgexpand image

 

Body text = 3 rem

3rem.jpgexpand image

 

Body text = 0.5 rem

halfrem.jpgexpand image

 

This doesn't have much to do with the page issue, but it does demonstrate that readers do a lot of "management" of the liquid content, not always in a sensible way. If a template or CSS override mucks with the body font size, these predictable but bizarre effects are the result.

 

—

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines