29 January 2014

Anki :: ligaturas

Anki 2.0.22 uses widget QWebView from Qt 4.8 library to parse HTML code and apply CSS styles. QWebView is Safari version of WebKit engine.

The standart way to show ligatures in OpenType fonts is to use at least one of these properties:
font-variant-ligatures: normal;
font-feature-settings: "liga", "dlig";
-webkit-font-feature-settings: "liga", "dlig";
The last line is acceptable to Chromium/WebKit only. Safari dose not support nothing of these features.

But you can use 'text-rendering' feature for TrueType fonts:
<a class="mystyle">{{Question}}</a>
And in styling area:
.mystyle {
 font-family: Calibri;
 text-rendering: optimizeLegibility;
}
This is not so reach though in compare to OTF.

No comments:

Post a Comment