Giter Site home page Giter Site logo

super11 / arabicfontexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from persadaag/arabicfontexample

0.0 2.0 0.0 22.24 MB

Render arabic font using native JNE

Java 0.24% Makefile 0.07% C 76.19% C++ 3.09% Objective-C 0.06% Shell 0.01% D 20.34%

arabicfontexample's Introduction

Arabic Font Example

Render arabic font using native JNE

Library List

Important library list :

  1. Free Type (https://android.googlesource.com/platform/external/freetype.git)
  2. Harfbuzz, for text shaping. (https://github.com/arkusuma/harfbuzz-android)

How to use

  1. Make sure that your class & package is exactly same as written in your jni source code (*.c)
  2. Change your native text android textview to ArabicTextView in your layout xml. The complete name is depends on your package & class name of your ArabicTextView class name
  3. Copy the jni and obj folder. The jni contain the c-code, and the obj contain the compiled library. If you interest to compile your own version, please refer to free type and harfbuzz library repo.
  4. Don't forget to add the apropriate font in your assets
  5. Please, DO NOT add extra font manipulation in your code. It may broke the layout / the arabic view

Acknowledgement

Parts of this example were taken from https://github.com/arkusuma/quran-android

arabicfontexample's People

Contributors

persadaag 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.