Code Monkey home page Code Monkey logo

unicode's Introduction

The Unicode test suite for Cinder & C++11

The goal is to provide building blocks for handling Unicode text rendering from the ground-up on OSX, iOS and Android (Windows support should be trivial to add, contributions are welcome...)

Topics of interest

  1. Glyph shaping
  2. Font fallback
  3. Layout caching
  4. Script itemization
  5. BIDI reordering
  6. Line breaking
  7. OpenGL rendering

Freetype should be used behind the scenes. In addition, existing quality open-source fonts should be evaluated, starting with those bundled with the Android platform.

Motivations and scope

The goal is to provide support for internationalization in interactive applications and games created with Cinder. Currently, there is no appropriate cross-platform solution due the lack of public C++ API for text-rendering on Android.

Take in count, however, that not all the features available in OS solutions like CoreText (or even in modern browsers) are going to be implemented.

Progress

So far, Harfbuzz and ICU have been tested successfully via the following projects:

  1. CinderHarfbuzz
  2. ShapingTester
  3. ShapingMetrics
  4. FontComparator
  5. LanguageFeatures
  6. ShapingFallback
  7. SimpleBIDI
  8. SimpleVirtualFont
  9. SimpleLayoutCaching
  10. SimpleRendering
  11. ScriptDetector
  12. BIDI
  13. LayoutCaching
  14. VirtualFont
  15. Rendering

More work remains, notably with line-breaking and OpenGL rendering...

Installation

The instructions are for OSX.

  1. Download Cinder 0.8.5 Vanilla
  2. Unzip and rename the "cinder_0.8.5_mac" folder to "Cinder"
  3. Place a copy of the Freetype repository in Cinder/blocks
  4. Place a copy of this repository in Cinder/samples

The folder hierarchy should look like:
Cinder
|--blocks
|..|--Freetype
|--samples
|..|--Unicode

Running on OSX and iOS

  1. Enter the relevant folder in Projects
  2. Open the relevant XCode project (under osx or ios)

Tested with OSX 10.7.5 and XCode 4.6.2.
Tested with OSX 10.5.8 and XCode 5.0.2.

Running on Android

Prerequisites:

  1. Safetydank's fork of Cinder
  2. NDK r8e
  3. ADT 22.0.5

Then:

  1. Enter the relevant folder in Projects
  2. Enter the android folder
  3. Type . ./setup-android in Terminal and follow the instructions

unicode's People

Contributors

arielm avatar

Watchers

 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.