Coder Social home page Coder Social logo

Comments (2)

bryik avatar bryik commented on June 19, 2024

SDF works great when you have a font that supports all the characters you need. The manual nature of SDF means there is no font stack. This means if the user gives us some fancy unicode character that isn’t in our main font then we can’t render it. - Parris Khachi

It might be possible to create a Chinese character font. The process should be similar to making an English font. There might be issues with handling tens of thousands of characters.

For those interested: The Complete Beginner’s Guide to Chinese Fonts

Edit:

I looked into it a bit more; from StackExchange:

In the games I've worked on, we restricted the subset of characters used for Chinese, Japanese, and Korean (together referred to as CJK) to only those required to display the text in the game.

In other words, we didn't attempt to cram in every possible character; we just took the database of CJK text from our localization teams, did a pass over it to find all the Unicode code points that occurred at least once in the text, and generated a BMFont configuration file to lay out an atlas for exactly those characters. (It was all automated, so every time we got a new loc drop, we could regenerate the list of characters and the fonts as needed.)

from aframe-bmfont-text-component.

bryik avatar bryik commented on June 19, 2024

Mattdesl has said non-Latin languages are outside the scope of three-bmfont, so unfortunately this cannot be supported.

from aframe-bmfont-text-component.

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.