Code Monkey home page Code Monkey logo

Comments (9)

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

Do you mean output textures height? (crop unused space)

from fontbm.

0xDC00 avatar 0xDC00 commented on August 23, 2024

I mean increase the height (instead split to new file).
Crop unused space also good (but size must be power of two)

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

I added a new --texture-size argument, the list of allowed texture sizes, the first suitable size will be used for output textures. For example: --texture-size 256x256,512x512,1024x1024

from fontbm.

0xDC00 avatar 0xDC00 commented on August 23, 2024

512x128,512x256,512x512,..
512x* <= Can it be shortened like this?
Height is calculated automatically?

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

As I understand, the texture size you need should be power of two (128, 256, 512, 1024 and so on), so you can just use the row like 512x64,512x128,512x256,512x512,512x1024

from fontbm.

0xDC00 avatar 0xDC00 commented on August 23, 2024

You're right, 512x* <=> 512x64,...
Hmm, also allow non-power-of-two too? (for save space)

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

New flags (in the last release) --texture-crop-width and --texture-crop-height crop output textures, you can use --texture-size 512x65536 (the height is set to maximum supported texture size in your hardware/software) and --texture-crop-height to get 512 width and automatic height (non-power-of-two).

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

@0xDC00 As I understand it, the goal:

automatically increase the height accordingly

can be achieved using the new flags, do you mind that this issue can be closed?

from fontbm.

vladimirgamalyan avatar vladimirgamalyan commented on August 23, 2024

I have closed the issue for now, feel free to reopen it if necessary.

from fontbm.

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.