Git Product home page Git Product logo

aronsoyol / mtc Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 18.29 MB

Mongolian text component

Makefile 1.77% Shell 2.26% C 66.90% Awk 0.32% Python 1.15% M4 0.27% HTML 7.72% C++ 12.13% Objective-C 2.40% DIGITAL Command Language 0.50% CMake 0.15% Assembly 1.00% Batchfile 0.03% Roff 1.91% Module Management System 0.02% SAS 0.01% CLIPS 0.04% Pascal 0.47% Ada 0.60% C# 0.37%
traditional-mongolian harfbuzz freetype mongolian

mtc's Introduction

Mongolian Text Component

这是一个用c++实现的在Windows上的蒙古文显示软件。

现在的蒙古文UNICODE编码被设计成了需要复杂渲染(选型)引擎的支持才能正确显示的编码。 可是遗憾的是几乎所有的软件都不支持蒙古文的特殊的选型规则。 而且蒙古文是竖排的,这一点也是很多软件,或者控件不支持的。 所以想要解决蒙古文的显示问题,一定要从底层的图形显示,以及文本渲染等等开始着手开发。

这里提供的C++代码展示了如何在VC++环境中调用FreeType和HarfBuzz来渲染和显示蒙古文的方法。

希望能给年轻的蒙古文软件开发者一点启示。


两点注意

  1. JDK的位数(32, 64)必须和工程匹配
  2. 系统的PATH里必须有JAVA的路径(如果报找不到JVM.dll的错误,可能就是path里没有java路径的原因)

使用JDK的理由

使用了jdk的BreakIterator进行切文本,也可以使用ICU。

如果使用JDK就定义JNI宏,使用ICU就定义ICU宏,二选一。

何为"切文本"

http://userguide.icu-project.org/boundaryanalysis

如果你会java就试一下BreakIterator的功能。

安卓版:

码云:https://gitee.com/aronsoyol/MTCA

github:https://www.github.com/aronsoyol/mtca

mtc's People

Contributors

aronsoyol avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.