It is currently Sat Aug 22, 2026 4:56 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Wed Feb 29, 2012 10:52 pm  (#21) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
ZWard117 wrote:
Hey Rod let me see the latest code. Or is the latest code the one in the previous posts.


This is the place i am at now.This will allow PhotoFont Start to install the PHF file, but the glyph images will not show in PhotoFont Start software. :)
<?xml version="1.0" ?>
<PhF version="1.0">

<header>
  <version type="string"></version>
  <family type="string">Grassy-Vine_RD_Test</family>
  <full_name type="string">Grassy-Vine_RD_Test</full_name>
  <codepage type="string">MS Windows 1252 Western (ANSI)</codepage>
  <ascender type="int">443</ascender>
  <descender type="int">96</descender>
  <internal_leading type="int">107</internal_leading>
  <upm type="int">480</upm>
</header>

<globals>
  <unicode_mapping type="array" subtype="map_unicode">
   <map id="A" unc="65" />
   <map id="B" unc="66" />
   <map id="C" unc="67" />
   <map id="D" unc="68" />
   <map id="E" unc="69" />
   <map id="F" unc="70" />
   <map id="G" unc="71" />
   <map id="a" unc="97" />
   <map id="b" unc="98" />
   <map id="c" unc="99" />
   <map id="d" unc="100" />
   <map id="e" unc="101" />
   <map id="f" unc="102" />
   <map id="g" unc="103" />
  </unicode_mapping>
</globals>

<glyphs>
  <glyph id="A">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/ABCD.png">
     <ppm int="480" />
     <bbox x="20" y="-5" width="404" height="403" />
     <base x="-20" y="398" />
     <delta x="444" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="B">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/EFGH.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="337" height="393" />
     <base x="-30" y="388" />
     <delta x="393" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="C">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/IJKL.png">
     <ppm int="480" />
     <bbox x="25" y="-5" width="357" height="415" />
     <base x="-25" y="410" />
     <delta x="405" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="D">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/MNOP.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="341" height="398" />
     <base x="-30" y="393" />
     <delta x="396" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="E">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/QRST.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="327" height="419" />
     <base x="-30" y="414" />
     <delta x="386" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="F">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/UVWX.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="295" height="413" />
     <base x="-30" y="408" />
     <delta x="340" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="G">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/YZ.png">
     <ppm int="480" />
     <bbox x="25" y="-5" width="379" height="413" />
     <base x="-25" y="408" />
     <delta x="430" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="a">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/ABCD.png">
     <ppm int="480" />
     <bbox x="20" y="-5" width="404" height="403" />
     <base x="-20" y="398" />
     <delta x="444" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="b">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/EFGH.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="337" height="393" />
     <base x="-30" y="388" />
     <delta x="393" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="c">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/IJKL.png">
     <ppm int="480" />
     <bbox x="25" y="-5" width="357" height="415" />
     <base x="-25" y="410" />
     <delta x="405" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="d">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/MNOP.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="341" height="398" />
     <base x="-30" y="393" />
     <delta x="396" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="e">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/QRST.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="327" height="419" />
     <base x="-30" y="414" />
     <delta x="386" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="f">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/UVWX.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="295" height="413" />
     <base x="-30" y="408" />
     <delta x="340" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="g">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/YZ.png">
     <ppm int="480" />
     <bbox x="25" y="-5" width="379" height="413" />
     <base x="-25" y="408" />
     <delta x="430" y="0" />
    </shape>
   </image>
  </glyph>

</glyphs>



<data>

  <photo>

  </photo>

</data>

</PhF>


The images are all in the My Documents>Photofonts>images folder.
The PHF is in the My Documents>Photofonts folder.
The PHF is already installed the images just do not show up in the 8bf software.(PhotoStart)

Any help would be appreciated.


Thanks.

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Wed Feb 29, 2012 10:54 pm  (#22) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
Maybe i just need different images. :)

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Wed Feb 29, 2012 11:06 pm  (#23) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2012
Posts: 583
Here, send me all the files and let me try something. I will try and get the file running. How did that shatter text work? Is it a type of zip or something similar? Gonna try an old trick on. Talk to you guys in the morning.

_________________


"In the face of adversity, there's three things: fly, freeze or fight; We're choosing to fight..."- Guy Boucher, Tampa Bay Lighting Head Coach


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Thu Mar 01, 2012 1:45 am  (#24) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
Problem Report Sent!


Thank you!

Your problem report has been sent to the FontLab support department. We will contact you soon with a response.

If you don't receive a response, please contact [email protected],[email protected].

This window will close automatically in 20 seconds. Click here to close it immediately.

Let me see what these guys say first. :)

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Thu Mar 01, 2012 1:47 am  (#25) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
ZWard117 wrote:
Here, send me all the files and let me try something. I will try and get the file running. How did that shatter text work? Is it a type of zip or something similar? Gonna try an old trick on. Talk to you guys in the morning.


The Shattered Text font i created in Bitfonter.....Easy Peasy.
I am trying to do this without having to embed the glyphs.

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Thu Mar 01, 2012 9:48 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2012
Posts: 583
If you were creating a photofont to share wouldn't you want to embed it? I understand that you are also working on making it so that people just create a folder so they don't have to purchase the software to embed the glyphs right?

_________________


"In the face of adversity, there's three things: fly, freeze or fight; We're choosing to fight..."- Guy Boucher, Tampa Bay Lighting Head Coach


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Thu Mar 01, 2012 2:53 pm  (#27) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2012
Posts: 583
Rod wrote:
ZWard117 wrote:
Hey Rod let me see the latest code. Or is the latest code the one in the previous posts.


This is the place i am at now.This will allow PhotoFont Start to install the PHF file, but the glyph images will not show in PhotoFont Start software. :)
<?xml version="1.0" ?>
<PhF version="1.0">

<header>
  <version type="string"></version>
  <family type="string">Grassy-Vine_RD_Test</family>
  <full_name type="string">Grassy-Vine_RD_Test</full_name>
  <codepage type="string">MS Windows 1252 Western (ANSI)</codepage>
  <ascender type="int">443</ascender>
  <descender type="int">96</descender>
  <internal_leading type="int">107</internal_leading>
  <upm type="int">480</upm>
</header>

<globals>
  <unicode_mapping type="array" subtype="map_unicode">
   <map id="A" unc="65" />
   <map id="B" unc="66" />
   <map id="C" unc="67" />
   <map id="D" unc="68" />
   <map id="E" unc="69" />
   <map id="F" unc="70" />
   <map id="G" unc="71" />
   <map id="a" unc="97" />
   <map id="b" unc="98" />
   <map id="c" unc="99" />
   <map id="d" unc="100" />
   <map id="e" unc="101" />
   <map id="f" unc="102" />
   <map id="g" unc="103" />
  </unicode_mapping>
</globals>

<glyphs>
  <glyph id="A">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/ABCD.png">
     <ppm int="480" />
     <bbox x="20" y="-5" width="404" height="403" />
     <base x="-20" y="398" />
     <delta x="444" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="B">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/EFGH.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="337" height="393" />
     <base x="-30" y="388" />
     <delta x="393" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="C">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/IJKL.png">
     <ppm int="480" />
     <bbox x="25" y="-5" width="357" height="415" />
     <base x="-25" y="410" />
     <delta x="405" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="D">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/MNOP.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="341" height="398" />
     <base x="-30" y="393" />
     <delta x="396" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="E">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/QRST.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="327" height="419" />
     <base x="-30" y="414" />
     <delta x="386" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="F">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/UVWX.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="295" height="413" />
     <base x="-30" y="408" />
     <delta x="340" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="G">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/YZ.png">
     <ppm int="480" />
     <bbox x="25" y="-5" width="379" height="413" />
     <base x="-25" y="408" />
     <delta x="430" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="a">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/ABCD.png">
     <ppm int="480" />
     <bbox x="20" y="-5" width="404" height="403" />
     <base x="-20" y="398" />
     <delta x="444" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="b">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/EFGH.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="337" height="393" />
     <base x="-30" y="388" />
     <delta x="393" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="c">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/IJKL.png">
     <ppm int="480" />
     <bbox x="25" y="-5" width="357" height="415" />
     <base x="-25" y="410" />
     <delta x="405" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="d">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/MNOP.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="341" height="398" />
     <base x="-30" y="393" />
     <delta x="396" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="e">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/QRST.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="327" height="419" />
     <base x="-30" y="414" />
     <delta x="386" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="f">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/UVWX.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="295" height="413" />
     <base x="-30" y="408" />
     <delta x="340" y="0" />
    </shape>
   </image>
  </glyph>

  <glyph id="g">
   <image id="v0" type="photo">
    <shape bitmap_placement="/images/YZ.png">
     <ppm int="480" />
     <bbox x="25" y="-5" width="379" height="413" />
     <base x="-25" y="408" />
     <delta x="430" y="0" />
    </shape>
   </image>
  </glyph>

</glyphs>



<data>

  <photo>

  </photo>

</data>

</PhF>


The images are all in the My Documents>Photofonts>images folder.
The PHF is in the My Documents>Photofonts folder.
The PHF is already installed the images just do not show up in the 8bf software.(PhotoStart)

Any help would be appreciated.


Thanks.


Look at the development site that you listed.
http://photofont.com/photofont/devel/
It shows something that may fix everything! In any web references for any content, you have to point it from the origin of the file you are programming. Like this:
Folder with XML File in has two sub folders A and B. The origin folders name is irrelevant.
FOLDER
---file.xml
---Folder A
---imageA.png
---Folder B
------imageB.png
A correct reference to either one of these images in the XML folder would be made in such way:
<image src="../Folder A/imageA.png"/> Notice the two periods before the folder? That translates to "all same directories as current file is located in"/Folder A/imageA.png

Understand? Try putting those in front of your location calls. If that doesn't work try removing the ../ and the / before Folder A.
ATTENTION This only works if the folder containing the .phf has sub folders with it. It will not work say if you have the .phf in my documents and the images in a folder in your desktop.

_________________


"In the face of adversity, there's three things: fly, freeze or fight; We're choosing to fight..."- Guy Boucher, Tampa Bay Lighting Head Coach


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Fri Mar 02, 2012 1:56 am  (#28) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
Yes if i have one created i will send it out with embeded images, but i am trying to get this available for anyone that wants to create their OWN phf files to use.Without spending a pile of cash to do it.
I have still gotten no answer from PhotoFont.com support.I am afraid the answer will be buy the software...lol
Maybe it's time to go back to the LISP program.That did work for the person that wrote the blog.Maybe i will contact him. :) - http://blog.matroid.org/display/63

I did try
<image src="">
before but not as a separate call tag. I had placed it within the image id tag.Like so.

  <glyph id="f">
   <image id="v0" type="photo" src="../folder/image.png">
    <shape bitmap_placement="/images/UVWX.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="295" height="413" />
     <base x="-30" y="408" />
     <delta x="340" y="0" />
    </shape>
   </image>
  </glyph>


Perhaps it needs to be written as...
  <glyph id="f">
   <image id="v0" type="photo">
   <image  src="../folder/image.png"   ---> #added here instead#
    <shape bitmap_placement="/images/UVWX.png">
     <ppm int="480" />
     <bbox x="30" y="-5" width="295" height="413" />
     <base x="-30" y="408" />
     <delta x="340" y="0" />
    </shape>
   </image>
  </glyph>


I have also tried just the image out of the folder
<image src="image.png">

Also tried using the href tag, and an original file name -- "file:///C:/folder/image.png"

I will try those couple of things you mentioned.

Thanks.

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Fri Mar 02, 2012 2:40 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2012
Posts: 583
Href is not for finding sources of images, href is used to make a hyperlink reference and is only used to make a link. Try putting the ../ in front of the bitmap_placement meaning bitmap_placement="../images/image.png" when having to call the image twice for a script to work it is generally the same exact linking system; meaning the image src="../image/image.png" should be the same reference in the bitmap_placement call: bitmap_placement="../images/image.png" (look at what I have in bold (hopefully))

_________________


"In the face of adversity, there's three things: fly, freeze or fight; We're choosing to fight..."- Guy Boucher, Tampa Bay Lighting Head Coach


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Fri Mar 02, 2012 4:26 pm  (#30) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
I think the plugin is broken for loading external images...

I ran a file access monitor and saw this:

4:15:59 PM   pspi.exe:7340   OPEN   C:\Temp\tes2t.phf   SUCCESS   Options: Open  Access: All   
4:15:59 PM   pspi.exe:7340   READ    C:\Temp\tes2t.phf   SUCCESS   Offset: 0 Length: 262144   
4:15:59 PM   pspi.exe:7340   READ   C:\Temp\tes2t.phf   END OF FILE   Offset: 724 Length: 262144   
4:15:59 PM   pspi.exe:7340   QUERY INFORMATION   C:\Temp\tes2t.phf   SUCCESS   Attributes: A   
4:15:59 PM   pspi.exe:7340   CLOSE   C:\Temp\tes2t.phf   SUCCESS      
4:15:59 PM   pspi.exe:7340   OPEN   C:\Program Files\Common Files\Photofonts\   NOT FOUND   Options: Open Directory  Access: All   


So I think it might be looking in "C:\Program Files\Common Files\Photofonts" for images even though I specified a relative path as the developer documents state:

<?xml version="1.0" ?>
<PhF version="1.0">

<header>
<version type="string"></version>
<family type="string">Testing2</family>
<full_name type="string">Testing2</full_name>
<codepage type="string">MacOS Roman</codepage>
<ascender type="int">34</ascender>
<descender type="int">9</descender>
<upm type="int">36</upm>
</header>

<globals>
<unicode_mapping type="array" subtype="map_unicode">
<map id="A" unc="65" />
</unicode_mapping>
</globals>

<glyphs>
<glyph id="A">
<image id="v0" type="photo">
<shape bitmap_placement="../images/A.png">
<ppm int="36" />
<bbox x="0" y="-1" width="27" height="28" />
<base x="0" y="27" />
<delta x="26" y="0" />
</shape>
</image>
</glyph>
</glyphs>

</PhF>


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 4:13 am  (#31) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
Testing now Rob Thanks! :)

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 5:22 am  (#32) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
Rob you said that your test revealed that the plug-in is looking here
C:\Program Files\Common Files\Photofonts\
I created a new folder in C:\Program Files\Common Files\ named Photofonts
I placed all the images inside that folder and tried this...(without any slashes as the plug-in adds that already)
<glyphs>
  <glyph id="A">
   <image id="v0" type="photo">
    <shape bitmap_placement="ABCD.png">
     <ppm int="480" />
     <bbox x="20" y="-5" width="404" height="403" />
     <base x="-20" y="398" />
     <delta x="444" y="0" />
    </shape>
   </image>
  </glyph>

That didn't work so i tried these "..\ABCD.png" and "/ABCD.png" and "../ABCD.png" and "\ABCD.png"

None of which worked.
I also tried the full path with no luck.

Each shape is actually 2000x2000 pixels in size. I wonder if i should make them smaller say 500x500 pixels?
I thought the xml code would call the image and center the contents, then size it to bbox sizes. They are all glyphs on transparency.

Tried resizing to 500x500 and tried this code
<glyphs>
  <glyph id="A">
   <image id="v0" type="photo">
    <shape bitmap_placement="ABCD.png">
     <ppm int="480" />
     <bbox x="20" y="-5" width="404" height="403" />
     <base x="-20" y="398" />
     <delta x="444" y="0" />
    </shape>
   </image>
  </glyph>

That also did not work. :hoh

I think you are right the plug-in is disabled for importing images.
So i guess my first answer was correct...time to try LISP :hehe :lol''

I appreciate you and ZWard117's help.

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 9:39 am  (#33) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
I took an existing photofont I downloaded and replaced the mime information of the embedded image with different mime information of an image of the same size (used inkscape to get the mime encoded image) and it worked.

Though it is a pain that it seems photofonts can't be unloaded or reloaded... I've had to keep changing the names in the file so it doesn't complain that the photofont is already loaded.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 11:05 am  (#34) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
GOT IT!! Grab yer linen and get to grinnin folks!
I do not know what the deal is with the common programs directory it calls.Unless that's for all users?
Here is the code that i needed to get it to work...
<glyphs>
  <glyph id="A">
   <image id="v0" type="photo">
    <shape system="images/grassy/ABCD.png">
     <ppm int="480" />
     <bbox x="20" y="-5" width="404" height="403" />
     <base x="-20" y="398" />
     <delta x="444" y="0" />
    </shape>
   </image>
  </glyph>

Image

The image/grassy sub directory folder group is in the My Documents>Photofonts folder. :)
So apparently the plugin calls from the My Documents>Photofonts sub directory.
I wanted to do it this way because now a user can place all the different images in their own respective folders within a image directory within the Photofonts folder.Just to keep things tidy. I had to make sure that would work.


Okay it works...
Now to make a PHF file that will take an entire alphabet of image glyphs and install it. :)

But first another test ---- i used 500x500 pixel images i need to test the 2000x2000 ones for better higher quality text images.

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 12:07 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12836
Now that is cool news Rod. I definitely appreciate your effort and all those who know how to code. Look forward to your new toy when you feel it is ready for prime-time. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 12:49 pm  (#36) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2012
Posts: 583
Glad to hear that you got it working. Can't wait for the entire code and to start working on it.

_________________


"In the face of adversity, there's three things: fly, freeze or fight; We're choosing to fight..."- Guy Boucher, Tampa Bay Lighting Head Coach


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 1:28 pm  (#37) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Rod wrote:
The image/grassy sub directory folder group is in the My Documents>Photofonts folder. :)


So just to confirm - that is where you installed the 8bf plugin?

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 6:22 pm  (#38) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
RobA wrote:
Rod wrote:
The image/grassy sub directory folder group is in the My Documents>Photofonts folder. :)


So just to confirm - that is where you installed the 8bf plugin?

-Rob A>


No the plug-in is installed correctly in my 8bf folder and linked with PSPI.
When the PHF and image directories are added to the MY Documents>Photofonts directory and the shape system tag used it works. :)

The tree is like this

Photofont PHF document -
C:\Documents and Settings\Compaq_Owner.FAMILY-ROOM\My Documents\Photofonts

IMAGES -
C:\Documents and Settings\Compaq_Owner.FAMILY-ROOM\My Documents\Photofonts\images\YourImageFoldersHere

I have created a template for most glyphs which includes the path for each letter and numbers 0-9
Also paths to common used symbols are present. I used this as a test template and the text seems to kern well.However some tweaks may need to be made via Gimp after you create your text. I am hoping to get the bbox and base settings correct for all glyphs used according to the template i provided.I a working on that now.
Here is the xcf attached. Let me know if you want more symbols within the template.
Attachment:
ABCPhF.xcf [426.5 KiB]
Downloaded 320 times


I left the text layers intact so changing font face will be easier.Then just alpha to select and select to path.
Then you just need to edit>stroke path with paint brush. :)

This is of course only going to work on Windows for now. Sorry folks.
You may also need to tweak your unicode id's (map id for each unicode)
When you type out your text in Photofont Start you will know if you have it wrong when you type ? and get something else. :)

You can open any phf file to get a basic id nap list like this -
  <unicode_mapping type="array" subtype="map_unicode">
   <map id="A" unc="65" />
   <map id="Aacute" unc="193" />
   <map id="Acircumflex" unc="194" />
   <map id="Adieresis" unc="196" />
   <map id="Agrave" unc="192" />
   <map id="B" unc="66" />
   <map id="C" unc="67" />
   <map id="Ccedilla" unc="199" />
   <map id="D" unc="68" />
   <map id="E" unc="69" />
   <map id="Eacute" unc="201" />
   <map id="Ecircumflex" unc="202" />
   <map id="Edieresis" unc="203" />
   <map id="Egrave" unc="200" />
   <map id="F" unc="70" />
   <map id="G" unc="71" />
   <map id="H" unc="72" />
   <map id="I" unc="73" />
   <map id="Iacute" unc="205" />
   <map id="Icircumflex" unc="206" />
   <map id="Idieresis" unc="207" />
   <map id="Igrave" unc="204" />
   <map id="J" unc="74" />
   <map id="K" unc="75" />
   <map id="L" unc="76" />
   <map id="M" unc="77" />
   <map id="N" unc="78" />
   <map id="Ntilde" unc="209" />
   <map id="O" unc="79" />
   <map id="OE" unc="338" />
   <map id="Oacute" unc="211" />
   <map id="Ocircumflex" unc="212" />
   <map id="Odieresis" unc="214" />
   <map id="Ograve" unc="210" />
   <map id="P" unc="80" />
   <map id="Q" unc="81" />
   <map id="R" unc="82" />
   <map id="S" unc="83" />
   <map id="T" unc="84" />
   <map id="U" unc="85" />
   <map id="Uacute" unc="218" />
   <map id="Ucircumflex" unc="219" />
   <map id="Udieresis" unc="220" />
   <map id="Ugrave" unc="217" />
   <map id="V" unc="86" />
   <map id="W" unc="87" />
   <map id="X" unc="88" />
   <map id="Y" unc="89" />
   <map id="Z" unc="90" />
   <map id="a" unc="97" />
   <map id="aacute" unc="225" />
   <map id="acircumflex" unc="226" />
   <map id="adieresis" unc="228" />
   <map id="agrave" unc="224" />
   <map id="ampersand" unc="38" />
   <map id="b" unc="98" />
   <map id="braceleft" unc="123" />
   <map id="braceright" unc="125" />
   <map id="bracketleft" unc="91" />
   <map id="bracketright" unc="93" />
   <map id="bullet" unc="8226" />
   <map id="c" unc="99" />
   <map id="ccedilla" unc="231" />
   <map id="colon" unc="58" />
   <map id="comma" unc="44" />
   <map id="d" unc="100" />
   <map id="degree" unc="176" />
   <map id="dollar" unc="36" />
   <map id="e" unc="101" />
   <map id="eacute" unc="233" />
   <map id="ecircumflex" unc="234" />
   <map id="edieresis" unc="235" />
   <map id="egrave" unc="232" />
   <map id="eight" unc="56" />
   <map id="ellipsis" unc="8230" />
   <map id="equal" unc="61" />
   <map id="exclam" unc="33" />
   <map id="exclamdown" unc="161" />
   <map id="f" unc="102" />
   <map id="five" unc="53" />
   <map id="four" unc="52" />
   <map id="g" unc="103" />
   <map id="germandbls" unc="223" />
   <map id="greater" unc="62" />
   <map id="h" unc="104" />
   <map id="hyphen" unc="45" />
   <map id="i" unc="105" />
   <map id="iacute" unc="237" />
   <map id="icircumflex" unc="238" />
   <map id="idieresis" unc="239" />
   <map id="igrave" unc="236" />
   <map id="j" unc="106" />
   <map id="k" unc="107" />
   <map id="l" unc="108" />
   <map id="less" unc="60" />
   <map id="m" unc="109" />
   <map id="multiply" unc="215" />
   <map id="n" unc="110" />
   <map id="nine" unc="57" />
   <map id="ntilde" unc="241" />
   <map id="o" unc="111" />
   <map id="oacute" unc="243" />
   <map id="ocircumflex" unc="244" />
   <map id="odieresis" unc="246" />
   <map id="oe" unc="339" />
   <map id="ograve" unc="242" />
   <map id="one" unc="49" />
   <map id="ordfeminine" unc="170" />
   <map id="p" unc="112" />
   <map id="parenleft" unc="40" />
   <map id="parenright" unc="41" />
   <map id="percent" unc="37" />
   <map id="period" unc="46" />
   <map id="plus" unc="43" />
   <map id="q" unc="113" />
   <map id="question" unc="63" />
   <map id="questiondown" unc="191" />
   <map id="quotedbl" unc="34" />
   <map id="quotedblleft" unc="8220" />
   <map id="quotedblright" unc="8221" />
   <map id="quoteleft" unc="8216" />
   <map id="quoteright" unc="8217" />
   <map id="quotesingle" unc="39" />
   <map id="r" unc="114" />
   <map id="s" unc="115" />
   <map id="semicolon" unc="59" />
   <map id="seven" unc="55" />
   <map id="six" unc="54" />
   <map id="slash" unc="47" />
   <map id="space" unc="32" />
   <map id="t" unc="116" />
   <map id="three" unc="51" />
   <map id="two" unc="50" />
   <map id="u" unc="117" />
   <map id="uacute" unc="250" />
   <map id="ucircumflex" unc="251" />
   <map id="udieresis" unc="252" />
   <map id="ugrave" unc="249" />
   <map id="v" unc="118" />
   <map id="w" unc="119" />
   <map id="x" unc="120" />
   <map id="y" unc="121" />
   <map id="z" unc="122" />
   <map id="zero" unc="48" />
  </unicode_mapping>

_________________
Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 6:25 pm  (#39) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12836
OK Rod; when are you going to release your effort? Does it require an XCF? Not sure how it's going to work, so, hope you have a tut when it's ready for primetime. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: PhotoFont program for Gimp
PostPosted: Sat Mar 03, 2012 7:09 pm  (#40) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16164
lylejk wrote:
OK Rod; when are you going to release your effort? Does it require an XCF? Not sure how it's going to work, so, hope you have a tut when it's ready for primetime. :)


The XCF template will only be needed to create each of your PhotoFonts. You can change fontface or text within that template.Just keep the size the same and guides must stay where i have them.All glyphs need to be created within those guide boundaries.
As soon as i have the phf done i will release it.
The phf will have all the basic stuff inside all the user will need to do is add the correct image folder and file path.
(edit the code line for glyph src directories)
So to install a font all the user will need to do is create each glyph image, place them in a folder like say My Paperclip Font, and then place the phf file in the My Documents>Photofonts folder
Each image will have to be named according to the phf file glyph tags

<glyph id="A"> <--- map id - this must be the same as the map ids within unicode mapping tags
<image id="v0" type="photo"> <---- tells plugin the font is color and has transparency
<shape system="images/grassy/A.png"> <--- shape image name (can be changed by user)
<ppm int="480" /> <---- max range for size
<bbox x="20" y="-5" width="940" height="990" /> <---- coordinate values for font placement
<base x="-20" y="398" /> <---- base line values (bottom of font coordinate)
<delta x="444" y="0" /> <---- placement of top corner of font i think
</shape>
</image>
</glyph>


I am trying to have all these values set except image directory name and reference directories.These will be up to the user to change.


So long story short to install you need only create the images.
Edit the phf file to direct pstart to them - place it in the correct directory...
Place the images in the correct directory so pstart can find them (My Documents>Photofonts>images> directory)
Run the pstart within pshop or Gimp and install through the plugin interface.

Should be a pretty easy install really.Just a little editing on the users part for image location/reference.

I will include a PDF with the phf file. :bigthup

Final release will contain
Tutorial PDF on font template (XCF) and installing
XCF template
PHF basic file

Keep in mind i have yet to get anything over 500x500 to work. I will work on that in the next version.

Thanks for all your support and help folks! This will be a benefit to everyone using these cool PhotoFonts within their artwork.Photofonts can also be used in webpages and detected by spiders as TEXT!

Cool plus there. :)

_________________
Image


Top
Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group