Coder Social home page Coder Social logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
The problem is that including CJK fonts would greatly increase file size.  I 
think it would be good if we had two releases, one with CJK fonts and one 
without.

Original comment by arpruss on 24 Jul 2011 at 6:16

  • Changed state: Accepted

from apv.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
Separated packages would be very useful!

Original comment by [email protected] on 24 Jul 2011 at 11:49

from apv.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
Hi arpruss,
I want to ask: how to add more fonts in Mupdf (ex: cjk fonts).
Can u help me please?
Thanks
Best regards

Original comment by [email protected] on 15 Aug 2011 at 5:33

from apv.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 14, 2024
run ndk-build apv project.

modify the apv\pdfview\jni\mupdf\pdf\Android.mk
in line 9: 
#LOCAL_CFLAGS := -DNOCJK -O3 -DARCH_ARM 
change to:
LOCAL_CFLAGS :=  -O3 -DARCH_ARM
because the fonts is included by file:apv\pdfview\jni\mupdf\pdf\pdf_fontfile.c
-------------------------
#ifdef NOCJK  
#define NOCJKFONT  
#endif  

#include "../generated/font_base14.h"  

#ifndef NODROIDFONT  
#include "../generated/font_droid.h"  
#endif  

#ifndef NOCJKFONT  
#include "../generated/font_cjk.h"  
#endif  
-------------------------

then ,download mupdf-source,and make, to generate "generated" directory:"I 
don't know how to genera the file by build apv project... so,i copy files from 
mupdf."
-------------------------
copy cmap*.h,font_cjk.h to \apv\pdfview\jni\mupdf\generated

run ndk-build to get a new apk! good luck.

Original comment by [email protected] on 5 Mar 2012 at 1:23

from apv.

Related Issues (20)

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.