Jump to content

Several BitmapFontTexture


Koroldev
 Share

Recommended Posts

Hi all, I tried to use several BitmapFontTexture, but I see all text have first font and second font haves some deformations

58cb2a6012219_.jpg.d0a95bab8d112aac3720fec08cde6291.jpg

var f1 = new BABYLON.BitmapFontTexture(scene, "fonts/bulletsNumbers32.fnt", "fonts/bulletsNumbers32_0.png", undefined, false, undefined, function() {
                    new BABYLON.Text2D("123", { parent: canvas, id: "text1", bitmapFontTexture: f1, x:100, y: 100});
                });

var f2 = new BABYLON.BitmapFontTexture(scene, "fonts/message.fnt", "fonts/message_0.png", undefined, false, undefined, function() {
                    new BABYLON.Text2D("123", { parent: canvas, id: "text2", bitmapFontTexture: f2, x:100, y: 200});
                });

If i load just one font separately then first font or second font looks ok.

First font

first.jpg.63caeb2730ae1ccc5d736f9328344db0.jpg

Second font

second.jpg.e20b37c2894c8c45555a8831468d31db.jpg

 

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...