It is currently Fri Apr 26, 2024 9:43 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 408 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17, 18 ... 21  Next
Author Message
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Fri Oct 21, 2016 11:43 pm  (#281) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
In break apart by alpha just set fuziness to 0. and it keeps the sharp edges i think i just did it and the I looks as pointy as your original.

_________________
TinT


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Fri Oct 21, 2016 11:50 pm  (#282) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Yes i used G'MIC>Arrays & Tiles>Extract Objects.
Then I renamed each layer added a space.png layer and aligned all the layers as you see in the XCF file. I snapped to the guide to the bottom and left of the canvas edge (as Graechan did with Strawberry Fields).
The difference i believe comes from Trans "Auto Crop Resize To Selection Height" filter. This creates the exact width of the characters but allows for the entire height of the layer itself. Instead of doing a Layer>Layer Boundary Size> center and set height layer by layer which is very tedious.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Fri Oct 21, 2016 11:53 pm  (#283) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
In break apart by alpha just set fuziness to 0. and it keeps the sharp edges i think i just did it and the I looks as pointy as your original.

Good catch! :bigthup

I didn't think to alerting the fuzziness setting of break apart by alpha.

I think that this will make the font as it was intended.


It would be cool to be able to add the break apart by alpha, as an option of the script.
This way we could take an entire image and create the font for a single image?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 12:05 am  (#284) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Wallace wrote:
Rod wrote:
I see the problem with the script now. It doesn't allow overlap of transparent areas. It lines every character up according to border width. Tran is there a way to allow overlap of layer cells? Setting kerning isn't going to work because all the other letters are already close as you can see in my example image below.

[ Image ]

[ Image ]

The XCF font file is attached Wallace. :)

Attachment:
The attachment Rainflow_2.xcf is no longer available

That looks very crisp and clean. :bigthup
How did you get it so crisp?

I did an even cleaning render of the this font and here's the image.
Attachment:
The attachment Rainflow_2.1.png is no longer available

Here is 2.1
Image

Attachment:
Rainflow_2.1.xcf [895.18 KiB]
Downloaded 110 times


Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 12:18 am  (#285) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Nice work Rod.

There seems to be a space discrepancy?

Attachment:
rainflow_wallace_test.png
rainflow_wallace_test.png [ 94.48 KiB | Viewed 1889 times ]

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 12:23 am  (#286) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Okay, here's test version of script with kerning (version 15).
Attachment:
custom_font.scm [14.64 KiB]
Downloaded 112 times

make sure you all caps for text like "GIMP CHAT CUSTOM FONT IS AWESOME"... so that it's explicit and the script doesn't have to try to look for caps if it isn't there. Then this kerning works.
define a vector named for example "AT.png" and define a path start from left of A and ends at about 3/4 of the width A where the T should start.
define a vector named for example "AW.png" and define a path start from left of A and ends about 1/2 the width of A where he W should start...
and now we have kerning.
sample
Image

_________________
TinT


Last edited by trandoductin on Sat Oct 22, 2016 1:23 am, edited 2 times in total.

Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 12:29 am  (#287) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
Okay, here's test version of script with kerning.
Attachment:
custom_font.scm

make sure you all caps for text like "GIMP CHAT CUSTOM FONT IS AWESOME"... so that it's explicit and the script doesn't have to try to look for caps if it isn't there. Then this kerning works.
define a vector named for example "AT.png" and define a path start from left of A and ends at about 3/4 of the width A where the T should star.
define a vector named for example "AW.png" and define a path start from left of A and ends about 1/2 the width of A where he W should start...
and now we have kerning.
sample
[ Image ]

That looks great!
:jumpclap

But there's still some rounding off of the font edges?

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 12:53 am  (#288) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
that's because i still used the old .xcf that i am testing with fuzziness of 100. heheh :hehe
here's a better .xcf with vectors AT.png, AW.png, WA.png, AC.png defined
Attachment:
Wallace_3D_colorful_font.xcf [947.12 KiB]
Downloaded 116 times

Attachment:
sample_with_AT_AW_WA_AC_defined.jpg
sample_with_AT_AW_WA_AC_defined.jpg [ 1012.29 KiB | Viewed 1883 times ]


EDIT: AT could be a little wider, but you get the idea.
Notice this one has WALLACE which needs to definition kerning for WA.png
and AWESOME which needs definition of AW.png to get A and Ws closer together.

Great work on the font Wallace! :jumpclap
Rod and Wallace..good catch on the spacing, now we have optional kerning definition.

_________________
TinT


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 1:37 am  (#289) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Wallace this font is sooo nice :bigthup
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 2:01 am  (#290) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
forgot to define vectors other cases like AV,VA, TA, AY, YE so this font has those
Attachment:
Wallace_3D_colorful_font.xcf [947.59 KiB]
Downloaded 117 times

Attachment:
sample_with_AV_VA_TA_AY_YA_defined.jpg
sample_with_AV_VA_TA_AY_YA_defined.jpg [ 1.51 MiB | Viewed 1869 times ]

_________________
TinT


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 2:38 am  (#291) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Wallace wrote:
trandoductin wrote:
In break apart by alpha just set fuziness to 0. and it keeps the sharp edges i think i just did it and the I looks as pointy as your original.

Good catch! :bigthup

I didn't think to alerting the fuzziness setting of break apart by alpha.

I think that this will make the font as it was intended.


It would be cool to be able to add the break apart by alpha, as an option of the script.
This way we could take an entire image and create the font for a single image?

option to custom font script?
I don't know how it can detect which letter is which though.

_________________
TinT


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 3:10 am  (#292) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
trandoductin wrote:
I don't know how it can detect which letter is which though.

It wouldn't have to. Just break them apart in order left to right. A user could make a set number of characters on one layer in a list the script knows and run the script. The script would know how many characters there were and name them accordingly. After it broke them apart from alpha. With the left most character as A and paste it to its own layer "A.png" and so on through the list. You could use a call to G'MIC for the break apart stuff. Things like ( " = i ? j ) that have two or more pieces could already be finished. That is how i do mine anyways.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 4:27 am  (#293) 
Offline
GimpChat Member

Joined: Sep 23, 2016
Posts: 316
trandoductin wrote:
and now we have kerning


And now we have kerning. Well done! Brilliant!


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 5:32 am  (#294) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Cool Beans on the character spacing fix Tran! :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 10:07 am  (#295) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Rod wrote:
trandoductin wrote:
I don't know how it can detect which letter is which though.

It wouldn't have to. Just break them apart in order left to right. A user could make a set number of characters on one layer in a list the script knows and run the script. The script would know how many characters there were and name them accordingly. After it broke them apart from alpha. With the left most character as A and paste it to its own layer "A.png" and so on through the list. You could use a call to G'MIC for the break apart stuff. Things like ( " = i ? j ) that have two or more pieces could already be finished. That is how i do mine anyways.


I am not sure what you mean by = i ? j that have 2 pieces could already be finished?

_________________
TinT


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 10:11 am  (#296) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
this script would be very specific
i mean what if the font included smaller characters, and/or some symbols.

_________________
TinT


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 6:53 pm  (#297) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Wallace With the 3D colorful font have you thought of doing the lower case 2/3 the height of the upper case as below↓
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 8:49 pm  (#298) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13016
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Graechan wrote:
Wallace With the 3D colorful font have you thought of doing the lower case 2/3 the height of the upper case as below↓
[ Image ]

No Graechan, that didn't cross my mind.
If you would like to do this, be my guest.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 10:17 pm  (#299) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
trandoductin wrote:
Rod wrote:
trandoductin wrote:
I don't know how it can detect which letter is which though.

It wouldn't have to. Just break them apart in order left to right. A user could make a set number of characters on one layer in a list the script knows and run the script. The script would know how many characters there were and name them accordingly. After it broke them apart from alpha. With the left most character as A and paste it to its own layer "A.png" and so on through the list. You could use a call to G'MIC for the break apart stuff. Things like ( " = i ? j ) that have two or more pieces could already be finished. That is how i do mine anyways.


I am not sure what you mean by = i ? j that have 2 pieces could already be finished?

Well when G'MIC extract objects is used it will extract every object. If you have a j you will have a "." on one layer and the rest of the character on another. So i extract those characters by hand before i run G'MIC.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom Font script (spawned from Wallace's PhotoFont topic).
PostPosted: Sat Oct 22, 2016 10:31 pm  (#300) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
trandoductin wrote:
this script would be very specific
i mean what if the font included smaller characters, and/or some symbols.

What if each font file HAD to be certain characters so the script would run them every time?
You could name each small letter or symbol accordingly. Tell the script to see EVERY character as a list.
A , a , B, b, AND make the USER create the font in exactly that list from left to right and so many characters per row. Tell the script to see only that amount of characters per row.
Wouldn't that work?
This would also give you COMPLETE control over characters used in the font. No more "sorry that character is missing" error.

So basically your just
telling the script to see a list.
create every named layer... A.png, a.png ... ect ect

count the characters in the first row ( i am not sure how the script would see them by alpha maybe?)
if the first row character count is over or under ...error
if the first row is okay ...
extract first row and place in layer according to the list.

repeat until the list is finished.

OR just create all the named layers and extract EVERY object according to alpha using G'MIC and place according to row count. G'MIC extracts but doesn't name each layer. In fact sometimes layers are mixed. The Cap A could be at the top and cap Z in the middle somewhere. There is no precise order using G'MIC. Maybe David could fix this? Create a entirely NEW filter only for extracting the alphabet and naming each layer accordingly?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
Post new topic Reply to topic  [ 408 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17, 18 ... 21  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) New Custom Font Tool - Custom Font Lighting Effects GT Style Filter

3

No new posts Attachment(s) custom font

8

No new posts Can this be used for Custom Font?

5

No new posts Attachment(s) Custom Font Tools Release 13

1

No new posts Attachment(s) Custom Font WordWall v.001 for Gimp 2.10

4



* Login  



Powered by phpBB3 © phpBB Group