It is currently 07 Mar 2021, 09:23

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | 🡆 GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Help with Custom Font

Resources used in GIMP that aren't Python Fu or Scheme Fu (files other than .py or .scm files)
Tom
Forum Member

Help with Custom Font

Post#1 by Tom » 29 Apr 2020, 21:36


This is a image of the problem. I'm using Square Kids font and using the font as a font when you type a + or - it puts a little rectangle on top or the bottom of the font to make it look like a block.
Everything works right except for the rectangle, it gets placed like a regular font. I guess it's called kerning, I have tried adding a two point path and then moving the path to the edge. I'm not having any luck.
The black font at the bottom of the picture shows what it was supposed to look like.
Square Kids.7z #
(6.8 MiB) Downloaded 119 times
Square Kids.png
Square Kids.png # (410.84 KiB) Viewed 4890 times (Thumbnail | Recognize | Sq Tile)

tim
GL Blogger

Post#2 by tim » 29 Apr 2020, 21:55


moving the path to the edge doesn't do it.
But you have to make the distance between point 1 and point 2 (which defines the width of your character).
So make that super small so that it doesn't take up and space and it'll be centered.
here I tried a 2 point path named "+.png" duplicated and renamed to "-.png" as well and made left point and right point very close to each other as to having a width of near zero (I guess you could make them zero by dragging one over top of each other).
but it seems to work fine.
sample.png
sample.png # (294.27 KiB) Viewed 4887 times (Thumbnail | Recognize | Sq Tile)
aka Tin

         

tim
GL Blogger

Post#3 by tim » 29 Apr 2020, 22:01


this might seem like kerning but it's not since the rectangle is always going to be same position for all characters.
so you don't have to deal with kerning.
kerning is when you have like example MA you want the A to be regular spaced but when you have something VA you want the A to start earlier position because it's next to the V so what you do is your define a path/vector and name it VA.png and draw a width that is smaller than you would for the V.png path/vector...that way when it sees the combination VA it'll use the width defined in VA.png vector which is smaller than a typical width so it draws the V but then consider the V narrow so A starts soon hence appear closer to the V.
aka Tin

         

Tom
Forum Member

Post#4 by Tom » 30 Apr 2020, 20:39


That was sure a struggle !
No fault of yours, I kept making little paths and nothing would happen.
Then I read your post again and it finally dawned on me to rename the paths and duplicate it like you said.
Worked like a charm.... Thanks
Thanks.jpg
Thanks.jpg # (82.32 KiB) Viewed 4850 times (Thumbnail | Recognize | Sq Tile)

Issabella
Script Tester

Post#5 by Issabella » 02 May 2020, 07:43


Tom, it's a very interesting project and you have known how to solve the problems. Congrats!
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.

Tom
Forum Member

Post#6 by Tom » 02 May 2020, 18:32


Thanks You Issabella.


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | 🡆 GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Alan and 31 guests