Comments (9)
Do you mean output textures height? (crop unused space)
from fontbm.
I mean increase the height (instead split to new file).
Crop unused space also good (but size must be power of two)
from fontbm.
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.
512x128,512x256,512x512,..
512x* <= Can it be shortened like this?
Height is calculated automatically?
from fontbm.
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.
You're right, 512x*
<=> 512x64,...
Hmm, also allow non-power-of-two too? (for save space)
from fontbm.
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.
@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.
I have closed the issue for now, feel free to reopen it if necessary.
from fontbm.
Related Issues (20)
- feature request, solid round stroke color HOT 1
- Fonts generated by FontBM differ from their BMFont equivalents in size HOT 5
- Glyph quality? HOT 4
- How to turn off smoothing? HOT 1
- Crash when character has an glyph index but the glyph cannot be loaded HOT 5
- unexpectedly large kerning table HOT 2
- adding some new features HOT 2
- Feature: glyph alignment HOT 3
- Horizontal scaling factor is wrong when image cropped. HOT 1
- Feature suggestion - output outlines HOT 2
- kerning-pairs not available in current release build HOT 4
- fontsize value is negative HOT 3
- Whether the chnl value can be set? HOT 1
- Multiple font files in case of glyph not found HOT 1
- Image text output HOT 2
- TTF embedded bitmaps handled incorrectly HOT 2
- Italic or bold option HOT 1
- Wrong baseline? HOT 7
- Mac version? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fontbm.