It really depends on what u plan to do :)
A json file is nice and it can be edited easily.
Theres no way around doing additional calculations for non fixed size bm fonts.
Here is an example without json and a more simple, faster mapper.
However u need to do the layout manually for each font ...
Search found 11 matches
- Tue Feb 11, 2020 9:39 pm
- Forum: Coding Questions
- Topic: Any advice on centering bitmap text inside a screen?
- Replies: 11
- Views: 2949
- Tue Feb 11, 2020 9:21 am
- Forum: Applications - Feedback and Discussion
- Topic: Amitris Design Environment
- Replies: 22
- Views: 15149
Re: Amitris Design Environment
I'm just a little bummed since I missed out on seeing this project at all, even if it is dead. I always enjoy checking out others' projects here. I don't know why they suddenly left and abandoned the project, but what's done is done. I hope that Mohsen might return at some point, though.
- Mon Feb 10, 2020 10:23 pm
- Forum: Coding Questions
- Topic: Any advice on centering bitmap text inside a screen?
- Replies: 11
- Views: 2949
Re: Any advice on centering bitmap text inside a screen?
I'm on mobile now, so I can't easily post the source code on the forum itself, but here's a link to the code so that you can see what I ended up doing to horizontally align everything to the center of the screen. I'm open to any critique or advice anyone might have.
https://mega.nz/#!98tWWIBD!s2n ...
https://mega.nz/#!98tWWIBD!s2n ...
- Sun Feb 02, 2020 2:58 am
- Forum: Coding Questions
- Topic: Any advice on centering bitmap text inside a screen?
- Replies: 11
- Views: 2949
Re: Any advice on centering bitmap text inside a screen?
I went ahead with my own approach. Can't share my code right now since I'm not home, but I'll post it soon. Feel free to critique it when I do.
I appreciate the suggestions, though! Seems like I just didn't convey exactly what it was that I was trying to do clearly enough haha.
https://uploads ...
I appreciate the suggestions, though! Seems like I just didn't convey exactly what it was that I was trying to do clearly enough haha.
https://uploads ...
- Wed Jan 29, 2020 1:54 am
- Forum: Coding Questions
- Topic: Any advice on centering bitmap text inside a screen?
- Replies: 11
- Views: 2949
Re: Any advice on centering bitmap text inside a screen?
I'm not sure if I understood your issue right, but have you thought of using TextWidth()?
TextWidth() is not applicable in this case. I'm not using any font.
I'm going to go ahead with my own solution since it seems to be the only real way forward. I will share what I end up with once it's ready ...
TextWidth() is not applicable in this case. I'm not using any font.
I'm going to go ahead with my own solution since it seems to be the only real way forward. I will share what I end up with once it's ready ...
- Sun Jan 26, 2020 2:55 am
- Forum: Coding Questions
- Topic: Any advice on centering bitmap text inside a screen?
- Replies: 11
- Views: 2949
Re: Any advice on centering bitmap text inside a screen?
Not sure what you mean. Are you creating an image made of text, and want that image centered inside another image?
Not exactly.
In the example from my old patcher provided above, I iterate over each character in a string, if it's found in the map (an index of each character's coordinates and size ...
Not exactly.
In the example from my old patcher provided above, I iterate over each character in a string, if it's found in the map (an index of each character's coordinates and size ...
- Sun Jan 26, 2020 1:02 am
- Forum: Coding Questions
- Topic: Any advice on centering bitmap text inside a screen?
- Replies: 11
- Views: 2949
Any advice on centering bitmap text inside a screen?
I made a patcher a couple of years ago and am now working on an open source tool for creating patchers with a fair deal of customization, one of those being user defined bitmap fonts.
However, I never did get around to working out a proper solution for aligning bitmap font based text, so I figured I ...
However, I never did get around to working out a proper solution for aligning bitmap font based text, so I figured I ...
- Mon Feb 19, 2018 3:16 am
- Forum: The PureBasic Editor
- Topic: List of IDE Tools
- Replies: 25
- Views: 20452
Re: List of IDE Tools
This looks really nice. I considered approaching it similarly after noticing some other tools that have utilized Scintilla in this way, but I don't quite know enough about all of that quite yet.
I think I'll just use yours instead at this point. I'll try to learn from it as well, of course. I'd like ...
I think I'll just use yours instead at this point. I'll try to learn from it as well, of course. I'd like ...
- Sun Feb 18, 2018 11:58 pm
- Forum: The PureBasic Editor
- Topic: List of IDE Tools
- Replies: 25
- Views: 20452
Re: List of IDE Tools
I look forward to seeing how you implement it.skywalk wrote:Ok, your latest code is very different. I will check it out in a bit.
I went ahead and wrote my own since I am terrible with regular expressions.
I'll post it when it is clean.
- Sun Feb 18, 2018 9:36 pm
- Forum: The PureBasic Editor
- Topic: List of IDE Tools
- Replies: 25
- Views: 20452
Re: List of IDE Tools
Sorry, your code does not work.
Also, do NOT delete the target file without verifying it was changed!
Updated the code. Not sure what platform you're using, but I went ahead and also updated the regular expression to account for
Unix and Windows/DOS style line endings which I forgot to do ...
Also, do NOT delete the target file without verifying it was changed!
Updated the code. Not sure what platform you're using, but I went ahead and also updated the regular expression to account for
Unix and Windows/DOS style line endings which I forgot to do ...
- Sun Feb 18, 2018 12:18 am
- Forum: The PureBasic Editor
- Topic: List of IDE Tools
- Replies: 25
- Views: 20452
Re: List of IDE Tools
Does anyone have a tool that deletes trailing spaces and empty lines from IDE source code?
Checking before recreating existing code...
I may be a little bit late, but I wrote a really simple one a short while ago.
I couldn't come up with a more creative name that I liked so I went with the obvious ...
Checking before recreating existing code...
I may be a little bit late, but I wrote a really simple one a short while ago.
I couldn't come up with a more creative name that I liked so I went with the obvious ...