freebsd-ports/x11-fonts/gbdfed/files/patch-fontgrid.c
Max Brazhnikov d4768e3815 Add new port x11-fonts/gbdfed:
gbdfed is a GTK-based BDF font editor. It can import:
 - Metafont PK/GF fonts
 - Han Bitmap Font Format (HBF) fonts
 - Linux console (PSF, CP, and EGA/VGA) fonts
 - Sun VF fonts, OpenType (OTF & TTF) fonts
Alternatively it can load a font from the X server. Export is
supported to PSF2 Linux console fonts and HEX fonts.

WWW:	http://sofia.nmsu.edu/~mleisher/Software/gbdfed/

PR:		ports/168726
Submitted by:	Zhihao Yuan <lichray at gmail.com>
2012-06-09 13:01:21 +00:00

26 lines
702 B
C

--- fontgrid.c~ 2010-04-16 09:39:02.000000000 -0500
+++ fontgrid.c 2012-06-05 12:50:41.558078595 -0500
@@ -4711,10 +4711,7 @@ fontgrid_select_next_glyph(Fontgrid *fw,
return FALSE;
}
- if (fw->orientation == GTK_ORIENTATION_VERTICAL)
- code += (fw->cell_rows * count);
- else
- code += count;
+ code += count;
if (fw->unencoded && code > gp->encoding)
code = gp->encoding;
@@ -4794,10 +4791,7 @@ fontgrid_select_previous_glyph(Fontgrid
return FALSE;
}
- if (fw->orientation == GTK_ORIENTATION_VERTICAL)
- code -= (fw->cell_rows * count);
- else
- code -= count;
+ code -= count;
if (code < 0)
code = 0;