Giter VIP home page Giter VIP logo

Comments (10)

GValiente avatar GValiente commented on May 20, 2024 1

I think they look right :)

text-1

text-2

from butano.

laqieer avatar laqieer commented on May 20, 2024 1

I find the changes on that branch are already on master, so I can merge changes from master directly instead.

from butano.

laqieer avatar laqieer commented on May 20, 2024 1

Test with 25000+ characters in 46055a0 and it works fine.

text-0

user_variable_32x32.fnt
common_sc_variable_16x16.fnt
common_jp_variable_16x16.fnt
common_kr_variable_16x16.fnt
common_tc_variable_16x16.fnt
common_hc_variable_16x16.fnt
    fonts/user_variable_32x32.fnt font header written in build/user_variable_32x32_sprite_font.h (character number: 22)
    ../../common/fonts/SimplifiedChinese/common_sc_variable_16x16.fnt font header written in build/common_sc_variable_16x16_sprite_font.h (character number: 3693)
    ../../common/fonts/Japanese/common_jp_variable_16x16.fnt font header written in build/common_jp_variable_16x16_sprite_font.h (character number: 2708)
    ../../common/fonts/Korean/common_kr_variable_16x16.fnt font header written in build/common_kr_variable_16x16_sprite_font.h (character number: 2449)
    ../../common/fonts/TraditionalChinese/common_tc_variable_16x16.fnt font header written in build/common_tc_variable_16x16_sprite_font.h (character number: 11250)
    ../../common/fonts/TraditionalChineseHK/common_hc_variable_16x16.fnt font header written in build/common_hc_variable_16x16_sprite_font.h (character number: 4914)
    Processed character number: 25036

from butano.

GValiente avatar GValiente commented on May 20, 2024

I'm working on a new font system that stores the UTF-8 characters map in ROM without character limits.

I have tested this new font system with a korean font with more than 2400 UTF-8 characters and it seems to work fine, but it would be great if I could test your fonts too.

In the examples you have posted I can't find the 3 files needed to create a font (*.bmp, *.json and *.h).

Could you link them?

Thanks.

from butano.

copyrat90 avatar copyrat90 commented on May 20, 2024

I think op put them on the Fonts: commit just below the Examples:

Fonts:

c1b8906

from butano.

GValiente avatar GValiente commented on May 20, 2024

I'm blind :)

Thanks.

from butano.

laqieer avatar laqieer commented on May 20, 2024

I'm working on a new font system that stores the UTF-8 characters map in ROM without character limits.

That's great. I also have the same idea when I find that they are all loaded to WRAM at once, which is inefficient and consumes much time and space.

I think op put them on the Fonts: commit just below the Examples:

Yes, you are right.

from butano.

GValiente avatar GValiente commented on May 20, 2024

Sadly, I have to break compatibility with old bn::sprite_font API, but I guess it is worth it.

I'll push a Butano 9.0.0 prerelease soon with the new API.

These header files have been updated to it: sprite_font.zip

from butano.

laqieer avatar laqieer commented on May 20, 2024

Could you please push it to a branch first so that I can merge it to mine directly? Thanks a lot.

from butano.

GValiente avatar GValiente commented on May 20, 2024

Here's your branch: https://github.com/GValiente/butano/tree/utf8_characters_map

from butano.

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.