View Single Post
Old 03-12-2019, 08:21 PM   #6
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by RbnJrg View Post

By the way, the font you uploaded is not a small-cap font but a regular one.
For the last years, I used a dedicated small-cap font and still do. Today's problem is different and there is a misundertanding I'd like to clear. Yes, this font is a regular one but it has optional smcp capabillities

Please, do analyze my font using this site
Select the "features" tab. You'll see that it has indeed some optional features which are "off by default". Among them, using small-caps.(see screenshot).

My question is how to use them on an ePub?

I am afraid that using font-variant: small-caps does not yield good results. Your ePub does not display smcp characters coming from the font using Sigil ou Calibre.

There is a simple way to check if you really use smcp characters coming from the font. Try to write: &. You should get the second character on the left of the screenshot.. (I've put a circle around it)

I add a second screenshot, showing a PDF exported from LibreOffice, using characters from this font, and which displays small-caps correctly, and also (see red marks)
- standard ligatures (on by default)
- old style numerics (off by default)
This is the result I am aiming for.

Edit:
However, after some searching, the informations I've reffered to above seem to be a little ahead of schedule as far as CSS is concerned.
The CSS Fonts Module Level 3 properties, font-feature-settings and font-variant-caps (among others) are currently "Candidates au statut de recommandation" (candidates to get a recommended status). Thre reference document is this one..

So, for the time being, it's too early to hope to get any CSS implementation, even if some software like LibreOffice or probably some browsers make already wide use of them.
Attached Thumbnails
Click image for larger version

Name:	smcp2.png
Views:	245
Size:	73.6 KB
ID:	170204   Click image for larger version

Name:	LO.png
Views:	284
Size:	91.0 KB
ID:	170205  

Last edited by roger64; 03-13-2019 at 03:43 AM. Reason: CSS3
roger64 is offline   Reply With Quote