Announcement

Collapse
No announcement yet.

Creating fonts in Configurator

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating fonts in Configurator

    How does one go about creating a font using the configurator?

    I created a PNG file with the characters and when I tried to open it in the "Add or Edit Fusion Font" dialog, all that shows are XML files regardless of whether you click the "Open Font File" or "Open Image File" icon.


    Thanks,

    Dan
    Thanks,

    Dan

  • #2
    Yup, the only showing xml files when selecting an image, is a bug. Just fixed it right now. I am uploading a new file to the updater.

    Also there was a bug in the Updater (I switched my debug and non-debug modes, whoops) so the past few releases, it will never check the server for updates. It will only check a nonexistant file on your computer for updates, so it wont update.

    I will post a link to a new standalone updater to replace the current one later tonight.
    Fusion Brain Version 6 Released!
    1.9in x 2.9in -- 47mm x 73mm
    30 Digital Outputs -- Directly drive a relay
    15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
    Buy now in the MP3Car.com Store

    Comment


    • #3
      Thanks.

      I copied an existing XML file, renamed it and pointed it to my PNG file. When I bring it up in the font editor I can see the characters and can edit the locations to center them but if I run the analyze function, it cannot find any characters.

      I've been reading a rather long thread about the configurator beta test and I think I'm creating the PNG correctly (but not sure). Should the characters themselves be transparent?

      It could be that the graphics app I'm using doesn't create the alpha channel correctly or something.
      Thanks,

      Dan

      Comment


      • #4
        Oh, one other thing I've ran into--I cannot seem to drag from the top left panel to the trashcan. Does this function work yet?
        Thanks,

        Dan

        Comment


        • #5
          Okay...got it to analyze!!! It was me (no surprise there) not creating the alpha channel correctly.

          After analyzing the PNG and entering the value for each character, I get an error every time I try to save the file. It says the PNG is in use by another process.

          I copied the XML from the bottom left panel and pasted it into the XML file and it works just fine but the file save needs to be looked at. Its like the file has been opened read-only instead of read-write.

          If you can point me to the correct section of code I will look at it.
          Thanks,

          Dan

          Comment


          • #6
            Originally posted by Dan2008 View Post
            Okay...got it to analyze!!! It was me (no surprise there) not creating the alpha channel correctly.

            After analyzing the PNG and entering the value for each character, I get an error every time I try to save the file. It says the PNG is in use by another process.

            I copied the XML from the bottom left panel and pasted it into the XML file and it works just fine but the file save needs to be looked at. Its like the file has been opened read-only instead of read-write.

            If you can point me to the correct section of code I will look at it.
            Make sure you dont have the image open in another program. Something like photoshop keeps exclusive rights sometimes. Is the configurator the only program open?
            Fusion Brain Version 6 Released!
            1.9in x 2.9in -- 47mm x 73mm
            30 Digital Outputs -- Directly drive a relay
            15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
            Buy now in the MP3Car.com Store

            Comment


            • #7
              That was my first thought so I tried with one of the PNGs included in the download and got the same result.

              The configurator is the only thing running.
              Thanks,

              Dan

              Comment


              • #8
                Originally posted by Dan2008 View Post
                How does one go about creating a font using the configurator?

                I created a PNG file with the characters
                I'm entirely new to this stuff and I'm not sure I even understand this part.

                So I'm guessing that you have to create a PNG file with each of the letters in the alphabet...so basically open PS up and create a new file with all of the letters typed out in the font you want to use. Then use the 'Add or Edit Fusion Font' page to basically see each of the letters and import it (of sorts) to the program?
                Jan Bennett
                FS: VW MKIV Bezel for 8" Lilliput - 95% Finished

                Please post on the forums! Chances are, someone else has or will have the same questions as you!

                Comment


                • #9
                  Originally posted by RedGTiVR6 View Post
                  I'm entirely new to this stuff and I'm not sure I even understand this part.

                  So I'm guessing that you have to create a PNG file with each of the letters in the alphabet...so basically open PS up and create a new file with all of the letters typed out in the font you want to use. Then use the 'Add or Edit Fusion Font' page to basically see each of the letters and import it (of sorts) to the program?
                  That's basically it. Make sure you leave space between each character so you can isolate it in the font designer.

                  Also, make sure the PNG file indeed has the alpha channel--that was giving me a hard time until I figured out that I wasn't actually creating the alpha channel.
                  Thanks,

                  Dan

                  Comment


                  • #10
                    Thanks.

                    I'm not sure how to create the alpha channel. Off to Google!

                    Hrmm....
                    The .xml that's created:

                    Code:
                    <?xml version="1.0" encoding="utf-8" ?>
                    <font fontImage="Arial_Alphabet-1.png">
                      <char location_topleft="4,0" location_bottomright="164,184" value="???" offsets="0,0,0,0"></char>
                      <char location_topleft="166,0" location_bottomright="291,184" value="???" offsets="0,0,0,0"></char>
                      <char location_topleft="292,0" location_bottomright="311,184" value="???" offsets="0,0,0,0"></char>
                      <char location_topleft="315,0" location_bottomright="381,184" value="???" offsets="0,0,0,0"></char>
                      <char location_topleft="385,0" location_bottomright="477,184" value="???" offsets="0,0,0,0"></char>
                    </font>
                    Pretty obvious that I've done something wrong....but what?
                    Attached Files
                    Jan Bennett
                    FS: VW MKIV Bezel for 8" Lilliput - 95% Finished

                    Please post on the forums! Chances are, someone else has or will have the same questions as you!

                    Comment


                    • #11
                      Put everything on a single line and don't press <enter> at the end.
                      Thanks,

                      Dan

                      Comment


                      • #12
                        You dont need everything on a single line.

                        But it does need a completely vertical line with nothing in it for that font height. Set the distance between characters to a value not just "auto" and it will evenly space giving good distance between. Then when it asks for font height, also make sure you set the height to how high 1 character is. If you used 25pt font, set it to 25.
                        Fusion Brain Version 6 Released!
                        1.9in x 2.9in -- 47mm x 73mm
                        30 Digital Outputs -- Directly drive a relay
                        15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
                        Buy now in the MP3Car.com Store

                        Comment


                        • #13
                          Just for example, the current font file I am using for the new Wizard is below. Notice the spacing between letters. There is no overhang, so there is a 1x25 pixel dead zone between each character where the config will snip from. I am still trying to think up a good character recognition system so you dont even have to type in the characters' values, but that is way in the future.

                          Actual Image (if on a laptop, put the screen at a huge angle and the contrast will show better):


                          Image With a black background just so you can see it:
                          Fusion Brain Version 6 Released!
                          1.9in x 2.9in -- 47mm x 73mm
                          30 Digital Outputs -- Directly drive a relay
                          15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
                          Buy now in the MP3Car.com Store

                          Comment


                          • #14
                            might make a good FAQ...I'll give this a try tonight. Thanks for the additional info.

                            Nick - if you need help developing some of this, I'll be happy to write it up as I go through the learning process. I've found in the past that it's sometimes the easiest and most thorough way.

                            It's what I did when I started at Centrafuse. Started learning and writing FAQs at the same time.



                            Just let me know.
                            Jan Bennett
                            FS: VW MKIV Bezel for 8" Lilliput - 95% Finished

                            Please post on the forums! Chances are, someone else has or will have the same questions as you!

                            Comment


                            • #15
                              Originally posted by RedGTiVR6 View Post
                              might make a good FAQ...I'll give this a try tonight. Thanks for the additional info.

                              Nick - if you need help developing some of this, I'll be happy to write it up as I go through the learning process. I've found in the past that it's sometimes the easiest and most thorough way.

                              It's what I did when I started at Centrafuse. Started learning and writing FAQs at the same time.



                              Just let me know.

                              We'd appreciate all the documentation we can get...

                              Comment

                              Working...
                              X