View Single Post
Old 12-02-2013, 10:53 AM   #145
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
I'm using OS X Mavericks

Quote:
Originally Posted by kovidgoyal View Post
@Perkin: Those warnings are harmless and are caused by an incompatibility of Qt with Mavericks, just ignore them.
Thought they could be, just thought you'd like to be informed.

Quote:
Originally Posted by kovidgoyal View Post
Embedded fonts should work automatically, with one exception - if the font family name in the actual font and the font family name in the @font-face rule dont match -- in that case they will not work.

Also because of a bug in Qt the embedded fonts may not show up the very first time a page is displayed, just click the refresh button under the preview panel (or make any changes to the file) and they should show up.
The test file does show correctly in calibre's viewer and on actual readers.
In the test file I'm using I have CSS of
Code:
@font-face {font-style:italic; font-weight:normal; font-family:"ReverseI"; src:url("../Fonts/CharisSILI.ttf");}
.reversei {font-family:"ReverseI",serif; font-weight:normal; font-style:italic; text-indent:0;line-height:1.2em;}
and html is
Code:
  <p class="reversei">One light / ɥʇɐǝp<br />
   Two lights / ʎǝʞ ǝuo<br />
   Three lights / sɥʇnɹʇ oʍʇ<br />
   Four lights / sʇǝɹɔǝs ǝǝɹɥʇ</p>
The font filename is correct, just doesn't display correctly, even when refreshing, unless I press the 'Embed referenced fonts' and then refresh

Quote:
Originally Posted by kovidgoyal View Post
There will eventually be an image editor where you can view, crop, rotate etc images.
Nice.

I was going to change the font-family name in the css [as above] (to 'Charis'), and I noticed that I can't actually edit anything with the keyboard - HTML or CSS
I can select text and drag it around or copy/paste, just can't use keyboard and alter/add anything.

Last edited by Perkin; 12-02-2013 at 10:56 AM.
Perkin is offline