开发者

OpenType programming

Recently i asked two questions (1 and 2) about using OpenType features in programs written by python and .net languages, but didn't get an answer. i realized there is no way to change text rendering engines of operating systems, or force them to use OpenType. so now want to implement my own. such a program that:

  • provides a text engine that
    • receives glyph shapes from otf and ttf files and renders them in sequence of glyphs in text.
    • generates all of OTL features
  • can be used in other parts of applications like controls开发者_JS百科 and components of .NET or python GUI libraries.

if python and .net languages are not suitable in this situation, aware me about other programming languages or tools.

comments and answers about text rendering system of common Operating Systems, or designing text engines compatible with unicode 5.02 protocol are welcomed.


Pango+Cairo does what you want

You might want to check out Pango which is a text layout and rendering engine which can handle OpenType ... see This blog entry on advanced opentype in Pango.

Pango also uses Cairo for rendering fonts, blocks of text using an SVG like backend.


What do you want do at last?

Just rendering some text but NOT with simple Windows provided API? Have a look at this.

Configuring fonts OpenType features on rendering for a simple text (same script and language)? Try to implement one of this examples on C++, then bind to your favorite language. It is not a very hard task if you know a bit about C++ programming on Windows.

Doing a whole text rendering thing? Handling bidi, line wrapping and ...? Well, your answer is Pango/Cairo, but bringing them on Windows is not an easy task either, but that would be easy if you try and install GTK#/Mono on Windows.

Is not sufficient? Try to use CefSharp or similar solutions on your project.

You may find these answers useful also: ^ ^

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜