Discussion:
[fontforge-users] FontForge fails to reproduce same font
Faith Less
2015-07-27 15:17:40 UTC
Permalink
Hello,

I'm trying to modify a font for usage in my ide, but just saving the font
with FontForge stops the font from showing up in the ide Monospaced fonts
list.

The font I'm using is DejaVu Sans Mono
<http://dejavu-fonts.org/wiki/Main_Page>. I follow these steps:

1. Load it up into *FontForge*
2. Go to *Element* > *Font Info* and just change it's name and UID so it
doesn't conflict with the original one
3. Go to *File* > *Generate* and *Generate* (tried both ttf and otf)
4. Install the fonts and load them up into the IDE


*This is how the original looks:*Loading Image...


*This is the one generated by fontforge (yet no changes made, just opened
and saved)*Loading Image...


What is causing this change? All I want to do is replace three glyphs from
the font, but even if I don't make any changes DejaVu Sans Mono doesn't
look like before and is no longer listed as monospaced.

Thanks a lot
Dave Crossland
2015-07-27 15:40:52 UTC
Permalink
You can use ttx 'split mode' to compare the files on a essentially binary
level, like this:

$ mkdir OLD
$ mkdir NEW
$ cp DejaVuSansMono-Regular.ttf OLD/font.ttf
$ cp New.ttf NEW/font.ttf
$ ttx -s */font.ttf
$ meld OLD NEW
Post by Faith Less
Hello,
I'm trying to modify a font for usage in my ide, but just saving the font
with FontForge stops the font from showing up in the ide Monospaced fonts
list.
The font I'm using is DejaVu Sans Mono
1. Load it up into *FontForge*
2. Go to *Element* > *Font Info* and just change it's name and UID so
it doesn't conflict with the original one
3. Go to *File* > *Generate* and *Generate* (tried both ttf and otf)
4. Install the fonts and load them up into the IDE
*This is how the original looks:*http://i.stack.imgur.com/hJZzq.png
*This is the one generated by fontforge (yet no changes made, just opened
and saved)*http://i.stack.imgur.com/zubCh.png
What is causing this change? All I want to do is replace three glyphs from
the font, but even if I don't make any changes DejaVu Sans Mono doesn't
look like before and is no longer listed as monospaced.
Thanks a lot
------------------------------------------------------------------------------
_______________________________________________
fontforge-users mailing list
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
--
Cheers
Dave
Panayiotis P
2015-07-27 18:03:12 UTC
Permalink
Hello,

I managed to get over this but in a weird way. If I just open the font in
fontforge and *do not *change the name or anything from the font info and
do not save the project, and generate/replace the original font, everything
works fine.

I even managed to replace the glyphs I wanted and generate the font with no
problem that way.

So three things could have caused this:

1. Saving the project somehow breaks up the font
2. Changing any font info (even if it's just the name of the font
family) breaks up the font
3. Saving into a new font file instead of the original one (highly
unlikely)

The only issue is I was stuck in replacing the original font because I
couldn't change the name without ruining it
Post by Dave Crossland
You can use ttx 'split mode' to compare the files on a essentially binary
$ mkdir OLD
$ mkdir NEW
$ cp DejaVuSansMono-Regular.ttf OLD/font.ttf
$ cp New.ttf NEW/font.ttf
$ ttx -s */font.ttf
$ meld OLD NEW
Post by Faith Less
Hello,
I'm trying to modify a font for usage in my ide, but just saving the font
with FontForge stops the font from showing up in the ide Monospaced fonts
list.
The font I'm using is DejaVu Sans Mono
1. Load it up into *FontForge*
2. Go to *Element* > *Font Info* and just change it's name and UID so
it doesn't conflict with the original one
3. Go to *File* > *Generate* and *Generate* (tried both ttf and otf)
4. Install the fonts and load them up into the IDE
*This is how the original looks:*http://i.stack.imgur.com/hJZzq.png
*This is the one generated by fontforge (yet no changes made, just opened
and saved)*http://i.stack.imgur.com/zubCh.png
What is causing this change? All I want to do is replace three glyphs
from the font, but even if I don't make any changes DejaVu Sans Mono
doesn't look like before and is no longer listed as monospaced.
Thanks a lot
------------------------------------------------------------------------------
_______________________________________________
fontforge-users mailing list
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
--
Cheers
Dave
------------------------------------------------------------------------------
_______________________________________________
fontforge-users mailing list
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
Dave Crossland
2015-07-27 19:47:26 UTC
Permalink
Hi

Cool, glad you found a way. Please open an issue on
github.com/fontforge/fontforge/issues/ describing this :)
Post by Faith Less
Hello,
I managed to get over this but in a weird way. If I just open the font in
fontforge and *do not *change the name or anything from the font info and
do not save the project, and generate/replace the original font, everything
works fine.
I even managed to replace the glyphs I wanted and generate the font with
no problem that way.
1. Saving the project somehow breaks up the font
2. Changing any font info (even if it's just the name of the font
family) breaks up the font
3. Saving into a new font file instead of the original one (highly
unlikely)
The only issue is I was stuck in replacing the original font because I
couldn't change the name without ruining it
Post by Dave Crossland
You can use ttx 'split mode' to compare the files on a essentially binary
$ mkdir OLD
$ mkdir NEW
$ cp DejaVuSansMono-Regular.ttf OLD/font.ttf
$ cp New.ttf NEW/font.ttf
$ ttx -s */font.ttf
$ meld OLD NEW
Post by Faith Less
Hello,
I'm trying to modify a font for usage in my ide, but just saving the
font with FontForge stops the font from showing up in the ide Monospaced
fonts list.
The font I'm using is DejaVu Sans Mono
1. Load it up into *FontForge*
2. Go to *Element* > *Font Info* and just change it's name and UID
so it doesn't conflict with the original one
3. Go to *File* > *Generate* and *Generate* (tried both ttf and otf)
4. Install the fonts and load them up into the IDE
*This is how the original looks:*http://i.stack.imgur.com/hJZzq.png
*This is the one generated by fontforge (yet no changes made, just
opened and saved)*http://i.stack.imgur.com/zubCh.png
What is causing this change? All I want to do is replace three glyphs
from the font, but even if I don't make any changes DejaVu Sans Mono
doesn't look like before and is no longer listed as monospaced.
Thanks a lot
------------------------------------------------------------------------------
_______________________________________________
fontforge-users mailing list
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
--
Cheers
Dave
------------------------------------------------------------------------------
_______________________________________________
fontforge-users mailing list
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
------------------------------------------------------------------------------
_______________________________________________
fontforge-users mailing list
https://lists.sourceforge.net/lists/listinfo/fontforge-users
http://fontforge.10959.n7.nabble.com/User-f8781.html
--
Cheers
Dave
Loading...