ref: 0c9e70d56909265221c13f68a1ef010b1514c5e1
parent: 7a7228955eeb53ce7adfb4e11fa1c500be35d616
author: Ali Gholami Rudi <[email protected]>
date: Sat Aug 2 15:53:27 EDT 2014
wb: find glyphs in the current font of word buffers
--- a/wb.c
+++ b/wb.c
@@ -129,11 +129,11 @@
sbuf_append(&wb->sbuf, c);
return;
}
- g = dev_glyph(c, R_F(wb));
+ g = dev_glyph(c, wb->f);
zerowidth = !strcmp(c_hc, c) || !strcmp(c_bp, c);
if (!g && c[0] == c_ec && !zerowidth) { /* unknown escape */
memmove(c, c + 1, strlen(c));
- g = dev_glyph(c, R_F(wb));
+ g = dev_glyph(c, wb->f);
}
if (g && !zerowidth && wb->icleft && glyph_icleft(g))
sbuf_printf(&wb->sbuf, "%ch'%du'",
@@ -507,6 +507,6 @@
/* return the size of \(hy if appended to wb */
int wb_dashwid(struct wb *wb)
{
- struct glyph *g = dev_glyph("hy", R_F(wb));
+ struct glyph *g = dev_glyph("hy", wb->f);
return charwid(wb->f, wb->s, g ? g->wid : 0);
}