no spaces in between words

Hyunchris

Member
Hey, I am sure there is a simple solution, but I have been trying to find out why this is happening for a very long time. like months lol. When I run the game, there are no spaces between words? I attached the fonts that i am using. thanks
 

Attachments

  • font.png
    font.png
    18.6 KB · Views: 5
Hey, I am sure there is a simple solution, but I have been trying to find out why this is happening for a very long time. like months lol. When I run the game, there are no spaces between words? I attached the fonts that i am using. thanks
@Hyunchris I tested your font table and it really looks wrong. The space exists but some letters are not aligned.
I attached some templates for you to follow the correct positioning. In addition, you can test the fontmonospace in your menu.txt file at the root of your data folder.

1688432426599.png
 

Attachments

  • 06_Font_size_272x272_for_letters_with_17x17_pi.gif
    06_Font_size_272x272_for_letters_with_17x17_pi.gif
    1.9 KB · Views: 2
  • 05_Font_size_256x256_for_letters_with_16x16_pi.gif
    05_Font_size_256x256_for_letters_with_16x16_pi.gif
    1.8 KB · Views: 1
  • 04_Font_size_208x272_for_letters_with_13x17_pi.gif
    04_Font_size_208x272_for_letters_with_13x17_pi.gif
    1.5 KB · Views: 0
  • 03_Font_size_192x192_for_letters_with_12x12_pi.gif
    03_Font_size_192x192_for_letters_with_12x12_pi.gif
    1.1 KB · Views: 0
  • 02_Font_size_160x160_for_letters_with_10x10_pi.gif
    02_Font_size_160x160_for_letters_with_10x10_pi.gif
    905 bytes · Views: 0
  • 01_Font_size_144x144_for_letters_with_9x9_pix.gif
    01_Font_size_144x144_for_letters_with_9x9_pix.gif
    822 bytes · Views: 2
thanks, I had it monospaced and removed it because it looks better without it. I was using one of the templates. I have a large game, so I need 25 pixel fonts and was using a 400 x400 template. I believe that is correct, because 25 x 16 = 400. I moved around the "i" and the W and M, and then some of the numbers a pixel or two, it seems better but still no spaces between words. I am attaching my fonts again, do they still look off? I am also attaching my menu screen to show where there are no spaces between words. If its still misaligned, which letters seem misaligned? I must be missing something because there are still no spaces between my words. thanks
 

Attachments

  • font.png
    font.png
    18.6 KB · Views: 3
  • menu.jpg
    menu.jpg
    830.1 KB · Views: 2
thanks, I had it monospaced and removed it because it looks better without it. I was using one of the templates. I have a large game, so I need 25 pixel fonts and was using a 400 x400 template. I believe that is correct, because 25 x 16 = 400. I moved around the "i" and the W and M, and then some of the numbers a pixel or two, it seems better but still no spaces between words. I am attaching my fonts again, do they still look off? I am also attaching my menu screen to show where there are no spaces between words. If its still misaligned, which letters seem misaligned? I must be missing something because there are still no spaces between my words. thanks
I tested your font table again and I can see the space, however the space is not rescaled according to the font size and maybe this can be the problem.
What resolution are you using? You could maybe reduce the space between each letter to make the native space look bigger.

You can see in the image below that both your/mine fonts have a space of 4px no matter their sizes, but mine looks to have more space due to smaller font size and less space between each letter.
1688495301002.png
 
i am using 1080p. I redid the fonts with a 20 pixel font and a 320 x 320 table. I am attaching my font table, i moved all my fonts to the left. is that what you meant to do in order to reduce the space between the letters? It is still not showing any spaces between words. thanks for the help, any other suggestions?
 

Attachments

  • font20.png
    font20.png
    4.4 KB · Views: 4
i am using 1080p. I redid the fonts with a 20 pixel font and a 320 x 320 table. I am attaching my font table, i moved all my fonts to the left. is that what you meant to do in order to reduce the space between the letters? It is still not showing any spaces between words. thanks for the help, any other suggestions?
@Hyunchris Please, test the attached font in your game and let me know if there's more space between words. In SORX it works, I discovered a trick to force the engine to add an extra space.

I revised your font and realigned everything, before changing anything please make the tests with no changes. The engine will read these two points I added, it seems that this place is used to calculate the font spacing and by adding extra pixels it gives you more space.

1688610116746.png

1688609863417.png
 

Attachments

  • font.png
    font.png
    1.6 KB · Views: 8
thanks the png that you made works perfect. How would you suggest that I resize it? If I want to make the fonts larger? I tried to simply scale the entire picture but the new file completely does not show in the game when i do that.
thanks for your help
 
thanks the png that you made works perfect. How would you suggest that I resize it? If I want to make the fonts larger? I tried to simply scale the entire picture but the new file completely does not show in the game when i do that.
thanks for your help
Glad it works :)

About the resize, png files sometimes need to reapply the palette if some changes are done to the file. You can use the PalApply (available in the resources section) to do this task or you can change the file type to .gif
 
@Hyunchris I tested your font table and it really looks wrong. The space exists but some letters are not aligned.
I attached some templates for you to follow the correct positioning. In addition, you can test the fontmonospace in your menu.txt file at the root of your data folder.

View attachment 4076
I am trying to create my own 1080P fonts for the OpenBOR template, but I am having problem that letters are overlapping each other or no space between words.
I have tried to reduce the font size, but same result.
I followed the manual from here:
Openbor guide

Can I use any type of font or the font has to be monospaced font type. I know the manual says that Openbor fonts are not monospaced.
I downloaded the
  • Font size 272×272 for letters with 17×17 pixels templates then resized it to 448 for font size 28
  • I placed the letters in each box
Please advise what I am doing wrong, thank you
 

Attachments

  • Font_28.png
    Font_28.png
    786.2 KB · Views: 4
@Bruce I suggest following the same solution I posted before, placing two points close to the exclamation can add an extra space. In addition, I suggest following the font table I posted because in your table the letters/numbers are unaligned and you placed letters in number's places at the first lines.

1700268954724.png

1700269063433.png

1700268854591.png

1700269231766.png
 
@Bruce I suggest following the same solution I posted before, placing two points close to the exclamation can add an extra space. In addition, I suggest following the font table I posted because in your table the letters/numbers are unaligned and you placed letters in number's places at the first lines.

View attachment 5730

View attachment 5732

View attachment 5729

View attachment 5733
I followed the layout of font table in the OpenBor template and I don't know why they had letters in the first row...
I don't know why my letters and numbers are unsigned. I just placed them close to the left edge of each box and was expecting they would line up correctly. I'm confused lol
 
I followed the layout of font table in the OpenBor template and I don't know why they had letters in the first row...
I don't know why my letters and numbers are unsigned. I just placed them close to the left edge of each box and was expecting they would line up correctly. I'm confused lol
I suggest using one of the templates I attached in this post, you can resize them if needed. Once you have the template ready, place every letter/number correctly aligned inside the blue boxes following the same order of the table I posted.
After the font table is perfectly aligned, use the "two points" I suggested in the previous post in order to add an extra space.

You need to align at the left/bottom of each square, not the top like I saw in your table. You can see an example in the table below.

1700348514933.png
 

Attachments

  • 1700347971108.gif
    1700347971108.gif
    1.9 KB · Views: 2
  • 1700347991419.gif
    1700347991419.gif
    5.3 KB · Views: 2
  • 1700347995491.gif
    1700347995491.gif
    13.5 KB · Views: 1
I suggest using one of the templates I attached in this post, you can resize them if needed. Once you have the template ready, place every letter/number correctly aligned inside the blue boxes following the same order of the table I posted.
After the font table is perfectly aligned, use the "two points" I suggested in the previous post in order to add an extra space.

You need to align at the left/bottom of each square, not the top like I saw in your table. You can see an example in the table below.

View attachment 5749
Thank you very much for patiently explaining it to me.
After I played around with it, now I understand how I am supposed to line up the numbers and letters.
I followed your instruction to add 2 dots, it displays the dots in the game too. Is this how it is?
 

Attachments

  • Untitled.png
    Untitled.png
    56.1 KB · Views: 2
Thank you very much for patiently explaining it to me.
After I played around with it, now I understand how I am supposed to line up the numbers and letters.
I followed your instruction to add 2 dots, it displays the dots in the game too. Is this how it is?
Glad that it works :)
You need to adjust the dots positions to the point where it does not appear anymore, it depends on the font table size and can vary from one to another. In addition you can change to darken colors too.
 
Back
Top Bottom