1503

TCPDF : font helvetica not work for japanese language

Question:

I need to generate multilingual pdf. I am using tcpdf 5.9.20, and font helvetica . It is working fine for English character, but displaying ???????? for Japanese character .

I also try arialunicid0 font suggest by <a href="http://community.impresscms.org/modules/newbb/viewtopic.php?post_id=43480" rel="nofollow">http://community.impresscms.org/modules/newbb/viewtopic.php?post_id=43480</a> . but it is forcing users to download lang-package

Answer1:

Try font "cid0jp", it can probably solve your problem.

I succeed in displaying Japanese and Chinese characters by using this font. It can be found in tfpdf's package.

Answer2:

Most fonts will not work for Japanese, since it needs thousands of characters (whereas English is satisfied with a hundred or so). Developing thousands of characters is expensive, thus Japanese fonts are expensive; and storing thousands of characters takes up space, which makes Japanese fonts multimegabyte. Therefore most Japanese still usually don't use custom fonts, and rely on the preinstalled fonts that come with the OS (or in one of OS-supported packages). Being a graphics designer is kind of expensive in Japan. Those that intend their documents for digital distribution (HTML, PDF) simply do not use any custom fonts.

Recommend

  • C#, dynamically creating picture boxes?
  • NoReverseMatch error when running tests in Django
  • No callback with FB.ui
  • Simple Yahoo Weather Api Not Working
  • HDFS resiliency to machine restarts in DC/OS
  • Entity Framework and Predicate Builder - Predicates being Ignored in SQL Query
  • Wait for angular to finish updating the DOM
  • Hibernate query filter on collection
  • retrofit.RetrofitError: 404 Not Found
  • Any command in mysql equivalent to Oracle's autotrace for performance turning
  • draw a B+ tree in latex
  • Usage of local dart library
  • Error building image: Error building rlang - not available on R 3.5.0 (Uploading shiny)
  • Is it possible to make imports depend on the location of my Lua script instead of the current direct
  • Install different versions of nuget packages inside one solution file with two projects
  • 2-table interaction: insert, get result, insert
  • JPA/EclipseLink Returning No Results
  • Redirect to trailng slash (htaccess)
  • Calling java project from Mathematica
  • Grunt watch Running “watch” task Waiting
  • How can I determine which routines MATLAB uses to solve a sparse matrix?
  • Change device language on Android 6.0 (Android M)
  • Add Windows Feature from C#
  • what is the purpose of “export as namespace foo”?
  • python: forcing relative imports to search from script file
  • Hide buttons on title bar in Java
  • Why are YouTube videos using 'youtube.com/v' not loading
  • Spring: No transaction manager has been configured
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • Spring boot 2.0.0.M4 required a bean named 'entityManagerFactory' that could not be found
  • Read text file that is not in the main package in a runnable jar
  • Roxygen error “Skipping invalid path”
  • ImageMagick, replace semi-transparent white with opaque white
  • Cannot connect to cassandra from Spark
  • Cross-Platform Protobuf Serialization
  • Upload files with Ajax and Jquery
  • Alternatives to the OPTIONAL fallback SPARQL pattern?
  • Do I've to free mysql result after storing it?
  • A cron job substitute?
  • json Serialization in asp