Giter VIP home page Giter VIP logo

Comments (12)

kobalicek avatar kobalicek commented on June 16, 2024

Please can you send me the font, or add where I can download it? Thanks!

from blend2d.

kobalicek avatar kobalicek commented on June 16, 2024

The link is not correct, please just paste the font file to GH it should upload it.

from blend2d.

HowToExpect avatar HowToExpect commented on June 16, 2024

fonts.zip

from blend2d.

HowToExpect avatar HowToExpect commented on June 16, 2024

Some fonts can be displayed normally

from blend2d.

HowToExpect avatar HowToExpect commented on June 16, 2024

fonts1.zip
this fonts can be displayed normally

from blend2d.

dongzhong avatar dongzhong commented on June 16, 2024

@kobalicek I have the similar problem.

BLGlyphBuffer glyph_buffer;
BLTextMetrics text_metrics;
  
while (p_start < text.size() && p_end <= text.length()) {
  const auto sub_text = text.substr(p_start, p_end);

  glyph_buffer.setUtf8Text((sub_text).c_str(), p_end - p_start);

  BLResult result = bl_font_->shape(glyph_buffer); // When for the 4th char, the same assert occurs.
  bl_font_->getTextMetrics(glyph_buffer, text_metrics);

  // .......
}

from blend2d.

HowToExpect avatar HowToExpect commented on June 16, 2024

This problem is related to the font. I changed it to another font and it was fine. However, there was no problem with the previous version. This problem only appeared after updating to the latest version.

from blend2d.

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.