diff --git a/Makefile b/Makefile index 470ac86..6dfa212 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ include config.mk -SRC = st.c x.c +SRC = st.c x.c boxdraw.c OBJ = $(SRC:.c=.o) all: options st @@ -23,6 +23,7 @@ config.h: st.o: config.h st.h win.h x.o: arg.h config.h st.h win.h +boxdraw.o: config.h st.h boxdraw_data.h $(OBJ): config.h config.mk diff --git a/boxdraw.c b/boxdraw.c new file mode 100644 index 0000000..28a92d0 --- /dev/null +++ b/boxdraw.c @@ -0,0 +1,194 @@ +/* + * Copyright 2018 Avi Halachmi (:avih) avihpit@yahoo.com https://github.com/avih + * MIT/X Consortium License + */ + +#include +#include "st.h" +#include "boxdraw_data.h" + +/* Rounded non-negative integers division of n / d */ +#define DIV(n, d) (((n) + (d) / 2) / (d)) + +static Display *xdpy; +static Colormap xcmap; +static XftDraw *xd; +static Visual *xvis; + +static void drawbox(int, int, int, int, XftColor *, XftColor *, ushort); +static void drawboxlines(int, int, int, int, XftColor *, ushort); + +/* public API */ + +void +boxdraw_xinit(Display *dpy, Colormap cmap, XftDraw *draw, Visual *vis) +{ + xdpy = dpy; xcmap = cmap; xd = draw, xvis = vis; +} + +int +isboxdraw(Rune u) +{ + Rune block = u & ~0xff; + return (boxdraw && block == 0x2500 && boxdata[(uint8_t)u]) || + (boxdraw_braille && block == 0x2800); +} + +/* the "index" is actually the entire shape data encoded as ushort */ +ushort +boxdrawindex(const Glyph *g) +{ + if (boxdraw_braille && (g->u & ~0xff) == 0x2800) + return BRL | (uint8_t)g->u; + if (boxdraw_bold && (g->mode & ATTR_BOLD)) + return BDB | boxdata[(uint8_t)g->u]; + return boxdata[(uint8_t)g->u]; +} + +void +drawboxes(int x, int y, int cw, int ch, XftColor *fg, XftColor *bg, + const XftGlyphFontSpec *specs, int len) +{ + for ( ; len-- > 0; x += cw, specs++) + drawbox(x, y, cw, ch, fg, bg, (ushort)specs->glyph); +} + +/* implementation */ + +void +drawbox(int x, int y, int w, int h, XftColor *fg, XftColor *bg, ushort bd) +{ + ushort cat = bd & ~(BDB | 0xff); /* mask out bold and data */ + if (bd & (BDL | BDA)) { + /* lines (light/double/heavy/arcs) */ + drawboxlines(x, y, w, h, fg, bd); + + } else if (cat == BBD) { + /* lower (8-X)/8 block */ + int d = DIV((uint8_t)bd * h, 8); + XftDrawRect(xd, fg, x, y + d, w, h - d); + + } else if (cat == BBU) { + /* upper X/8 block */ + XftDrawRect(xd, fg, x, y, w, DIV((uint8_t)bd * h, 8)); + + } else if (cat == BBL) { + /* left X/8 block */ + XftDrawRect(xd, fg, x, y, DIV((uint8_t)bd * w, 8), h); + + } else if (cat == BBR) { + /* right (8-X)/8 block */ + int d = DIV((uint8_t)bd * w, 8); + XftDrawRect(xd, fg, x + d, y, w - d, h); + + } else if (cat == BBQ) { + /* Quadrants */ + int w2 = DIV(w, 2), h2 = DIV(h, 2); + if (bd & TL) + XftDrawRect(xd, fg, x, y, w2, h2); + if (bd & TR) + XftDrawRect(xd, fg, x + w2, y, w - w2, h2); + if (bd & BL) + XftDrawRect(xd, fg, x, y + h2, w2, h - h2); + if (bd & BR) + XftDrawRect(xd, fg, x + w2, y + h2, w - w2, h - h2); + + } else if (bd & BBS) { + /* Shades - data is 1/2/3 for 25%/50%/75% alpha, respectively */ + int d = (uint8_t)bd; + XftColor xfc; + XRenderColor xrc = { .alpha = 0xffff }; + + xrc.red = DIV(fg->color.red * d + bg->color.red * (4 - d), 4); + xrc.green = DIV(fg->color.green * d + bg->color.green * (4 - d), 4); + xrc.blue = DIV(fg->color.blue * d + bg->color.blue * (4 - d), 4); + + XftColorAllocValue(xdpy, xvis, xcmap, &xrc, &xfc); + XftDrawRect(xd, &xfc, x, y, w, h); + XftColorFree(xdpy, xvis, xcmap, &xfc); + + } else if (cat == BRL) { + /* braille, each data bit corresponds to one dot at 2x4 grid */ + int w1 = DIV(w, 2); + int h1 = DIV(h, 4), h2 = DIV(h, 2), h3 = DIV(3 * h, 4); + + if (bd & 1) XftDrawRect(xd, fg, x, y, w1, h1); + if (bd & 2) XftDrawRect(xd, fg, x, y + h1, w1, h2 - h1); + if (bd & 4) XftDrawRect(xd, fg, x, y + h2, w1, h3 - h2); + if (bd & 8) XftDrawRect(xd, fg, x + w1, y, w - w1, h1); + if (bd & 16) XftDrawRect(xd, fg, x + w1, y + h1, w - w1, h2 - h1); + if (bd & 32) XftDrawRect(xd, fg, x + w1, y + h2, w - w1, h3 - h2); + if (bd & 64) XftDrawRect(xd, fg, x, y + h3, w1, h - h3); + if (bd & 128) XftDrawRect(xd, fg, x + w1, y + h3, w - w1, h - h3); + + } +} + +void +drawboxlines(int x, int y, int w, int h, XftColor *fg, ushort bd) +{ + /* s: stem thickness. width/8 roughly matches underscore thickness. */ + /* We draw bold as 1.5 * normal-stem and at least 1px thicker. */ + /* doubles draw at least 3px, even when w or h < 3. bold needs 6px. */ + int mwh = MIN(w, h); + int base_s = MAX(1, DIV(mwh, 8)); + int bold = (bd & BDB) && mwh >= 6; /* possibly ignore boldness */ + int s = bold ? MAX(base_s + 1, DIV(3 * base_s, 2)) : base_s; + int w2 = DIV(w - s, 2), h2 = DIV(h - s, 2); + /* the s-by-s square (x + w2, y + h2, s, s) is the center texel. */ + /* The base length (per direction till edge) includes this square. */ + + int light = bd & (LL | LU | LR | LD); + int double_ = bd & (DL | DU | DR | DD); + + if (light) { + /* d: additional (negative) length to not-draw the center */ + /* texel - at arcs and avoid drawing inside (some) doubles */ + int arc = bd & BDA; + int multi_light = light & (light - 1); + int multi_double = double_ & (double_ - 1); + /* light crosses double only at DH+LV, DV+LH (ref. shapes) */ + int d = arc || (multi_double && !multi_light) ? -s : 0; + + if (bd & LL) + XftDrawRect(xd, fg, x, y + h2, w2 + s + d, s); + if (bd & LU) + XftDrawRect(xd, fg, x + w2, y, s, h2 + s + d); + if (bd & LR) + XftDrawRect(xd, fg, x + w2 - d, y + h2, w - w2 + d, s); + if (bd & LD) + XftDrawRect(xd, fg, x + w2, y + h2 - d, s, h - h2 + d); + } + + /* double lines - also align with light to form heavy when combined */ + if (double_) { + /* + * going clockwise, for each double-ray: p is additional length + * to the single-ray nearer to the previous direction, and n to + * the next. p and n adjust from the base length to lengths + * which consider other doubles - shorter to avoid intersections + * (p, n), or longer to draw the far-corner texel (n). + */ + int dl = bd & DL, du = bd & DU, dr = bd & DR, dd = bd & DD; + if (dl) { + int p = dd ? -s : 0, n = du ? -s : dd ? s : 0; + XftDrawRect(xd, fg, x, y + h2 + s, w2 + s + p, s); + XftDrawRect(xd, fg, x, y + h2 - s, w2 + s + n, s); + } + if (du) { + int p = dl ? -s : 0, n = dr ? -s : dl ? s : 0; + XftDrawRect(xd, fg, x + w2 - s, y, s, h2 + s + p); + XftDrawRect(xd, fg, x + w2 + s, y, s, h2 + s + n); + } + if (dr) { + int p = du ? -s : 0, n = dd ? -s : du ? s : 0; + XftDrawRect(xd, fg, x + w2 - p, y + h2 - s, w - w2 + p, s); + XftDrawRect(xd, fg, x + w2 - n, y + h2 + s, w - w2 + n, s); + } + if (dd) { + int p = dr ? -s : 0, n = dl ? -s : dr ? s : 0; + XftDrawRect(xd, fg, x + w2 + s, y + h2 - p, s, h - h2 + p); + XftDrawRect(xd, fg, x + w2 - s, y + h2 - n, s, h - h2 + n); + } + } +} diff --git a/boxdraw.o b/boxdraw.o new file mode 100644 index 0000000..6d303e0 Binary files /dev/null and b/boxdraw.o differ diff --git a/boxdraw_data.h b/boxdraw_data.h new file mode 100644 index 0000000..7890500 --- /dev/null +++ b/boxdraw_data.h @@ -0,0 +1,214 @@ +/* + * Copyright 2018 Avi Halachmi (:avih) avihpit@yahoo.com https://github.com/avih + * MIT/X Consortium License + */ + +/* + * U+25XX codepoints data + * + * References: + * http://www.unicode.org/charts/PDF/U2500.pdf + * http://www.unicode.org/charts/PDF/U2580.pdf + * + * Test page: + * https://github.com/GNOME/vte/blob/master/doc/boxes.txt + */ + +/* Each shape is encoded as 16-bits. Higher bits are category, lower are data */ +/* Categories (mutually exclusive except BDB): */ +/* For convenience, BDL/BDA/BBS/BDB are 1 bit each, the rest are enums */ +#define BDL (1<<8) /* Box Draw Lines (light/double/heavy) */ +#define BDA (1<<9) /* Box Draw Arc (light) */ + +#define BBD (1<<10) /* Box Block Down (lower) X/8 */ +#define BBL (2<<10) /* Box Block Left X/8 */ +#define BBU (3<<10) /* Box Block Upper X/8 */ +#define BBR (4<<10) /* Box Block Right X/8 */ +#define BBQ (5<<10) /* Box Block Quadrants */ +#define BRL (6<<10) /* Box Braille (data is lower byte of U28XX) */ + +#define BBS (1<<14) /* Box Block Shades */ +#define BDB (1<<15) /* Box Draw is Bold */ + +/* (BDL/BDA) Light/Double/Heavy x Left/Up/Right/Down/Horizontal/Vertical */ +/* Heavy is light+double (literally drawing light+double align to form heavy) */ +#define LL (1<<0) +#define LU (1<<1) +#define LR (1<<2) +#define LD (1<<3) +#define LH (LL+LR) +#define LV (LU+LD) + +#define DL (1<<4) +#define DU (1<<5) +#define DR (1<<6) +#define DD (1<<7) +#define DH (DL+DR) +#define DV (DU+DD) + +#define HL (LL+DL) +#define HU (LU+DU) +#define HR (LR+DR) +#define HD (LD+DD) +#define HH (HL+HR) +#define HV (HU+HD) + +/* (BBQ) Quadrants Top/Bottom x Left/Right */ +#define TL (1<<0) +#define TR (1<<1) +#define BL (1<<2) +#define BR (1<<3) + +/* Data for U+2500 - U+259F except dashes/diagonals */ +static const unsigned short boxdata[256] = { + /* light lines */ + [0x00] = BDL + LH, /* light horizontal */ + [0x02] = BDL + LV, /* light vertical */ + [0x0c] = BDL + LD + LR, /* light down and right */ + [0x10] = BDL + LD + LL, /* light down and left */ + [0x14] = BDL + LU + LR, /* light up and right */ + [0x18] = BDL + LU + LL, /* light up and left */ + [0x1c] = BDL + LV + LR, /* light vertical and right */ + [0x24] = BDL + LV + LL, /* light vertical and left */ + [0x2c] = BDL + LH + LD, /* light horizontal and down */ + [0x34] = BDL + LH + LU, /* light horizontal and up */ + [0x3c] = BDL + LV + LH, /* light vertical and horizontal */ + [0x74] = BDL + LL, /* light left */ + [0x75] = BDL + LU, /* light up */ + [0x76] = BDL + LR, /* light right */ + [0x77] = BDL + LD, /* light down */ + + /* heavy [+light] lines */ + [0x01] = BDL + HH, + [0x03] = BDL + HV, + [0x0d] = BDL + HR + LD, + [0x0e] = BDL + HD + LR, + [0x0f] = BDL + HD + HR, + [0x11] = BDL + HL + LD, + [0x12] = BDL + HD + LL, + [0x13] = BDL + HD + HL, + [0x15] = BDL + HR + LU, + [0x16] = BDL + HU + LR, + [0x17] = BDL + HU + HR, + [0x19] = BDL + HL + LU, + [0x1a] = BDL + HU + LL, + [0x1b] = BDL + HU + HL, + [0x1d] = BDL + HR + LV, + [0x1e] = BDL + HU + LD + LR, + [0x1f] = BDL + HD + LR + LU, + [0x20] = BDL + HV + LR, + [0x21] = BDL + HU + HR + LD, + [0x22] = BDL + HD + HR + LU, + [0x23] = BDL + HV + HR, + [0x25] = BDL + HL + LV, + [0x26] = BDL + HU + LD + LL, + [0x27] = BDL + HD + LU + LL, + [0x28] = BDL + HV + LL, + [0x29] = BDL + HU + HL + LD, + [0x2a] = BDL + HD + HL + LU, + [0x2b] = BDL + HV + HL, + [0x2d] = BDL + HL + LD + LR, + [0x2e] = BDL + HR + LL + LD, + [0x2f] = BDL + HH + LD, + [0x30] = BDL + HD + LH, + [0x31] = BDL + HD + HL + LR, + [0x32] = BDL + HR + HD + LL, + [0x33] = BDL + HH + HD, + [0x35] = BDL + HL + LU + LR, + [0x36] = BDL + HR + LU + LL, + [0x37] = BDL + HH + LU, + [0x38] = BDL + HU + LH, + [0x39] = BDL + HU + HL + LR, + [0x3a] = BDL + HU + HR + LL, + [0x3b] = BDL + HH + HU, + [0x3d] = BDL + HL + LV + LR, + [0x3e] = BDL + HR + LV + LL, + [0x3f] = BDL + HH + LV, + [0x40] = BDL + HU + LH + LD, + [0x41] = BDL + HD + LH + LU, + [0x42] = BDL + HV + LH, + [0x43] = BDL + HU + HL + LD + LR, + [0x44] = BDL + HU + HR + LD + LL, + [0x45] = BDL + HD + HL + LU + LR, + [0x46] = BDL + HD + HR + LU + LL, + [0x47] = BDL + HH + HU + LD, + [0x48] = BDL + HH + HD + LU, + [0x49] = BDL + HV + HL + LR, + [0x4a] = BDL + HV + HR + LL, + [0x4b] = BDL + HV + HH, + [0x78] = BDL + HL, + [0x79] = BDL + HU, + [0x7a] = BDL + HR, + [0x7b] = BDL + HD, + [0x7c] = BDL + HR + LL, + [0x7d] = BDL + HD + LU, + [0x7e] = BDL + HL + LR, + [0x7f] = BDL + HU + LD, + + /* double [+light] lines */ + [0x50] = BDL + DH, + [0x51] = BDL + DV, + [0x52] = BDL + DR + LD, + [0x53] = BDL + DD + LR, + [0x54] = BDL + DR + DD, + [0x55] = BDL + DL + LD, + [0x56] = BDL + DD + LL, + [0x57] = BDL + DL + DD, + [0x58] = BDL + DR + LU, + [0x59] = BDL + DU + LR, + [0x5a] = BDL + DU + DR, + [0x5b] = BDL + DL + LU, + [0x5c] = BDL + DU + LL, + [0x5d] = BDL + DL + DU, + [0x5e] = BDL + DR + LV, + [0x5f] = BDL + DV + LR, + [0x60] = BDL + DV + DR, + [0x61] = BDL + DL + LV, + [0x62] = BDL + DV + LL, + [0x63] = BDL + DV + DL, + [0x64] = BDL + DH + LD, + [0x65] = BDL + DD + LH, + [0x66] = BDL + DD + DH, + [0x67] = BDL + DH + LU, + [0x68] = BDL + DU + LH, + [0x69] = BDL + DH + DU, + [0x6a] = BDL + DH + LV, + [0x6b] = BDL + DV + LH, + [0x6c] = BDL + DH + DV, + + /* (light) arcs */ + [0x6d] = BDA + LD + LR, + [0x6e] = BDA + LD + LL, + [0x6f] = BDA + LU + LL, + [0x70] = BDA + LU + LR, + + /* Lower (Down) X/8 block (data is 8 - X) */ + [0x81] = BBD + 7, [0x82] = BBD + 6, [0x83] = BBD + 5, [0x84] = BBD + 4, + [0x85] = BBD + 3, [0x86] = BBD + 2, [0x87] = BBD + 1, [0x88] = BBD + 0, + + /* Left X/8 block (data is X) */ + [0x89] = BBL + 7, [0x8a] = BBL + 6, [0x8b] = BBL + 5, [0x8c] = BBL + 4, + [0x8d] = BBL + 3, [0x8e] = BBL + 2, [0x8f] = BBL + 1, + + /* upper 1/2 (4/8), 1/8 block (X), right 1/2, 1/8 block (8-X) */ + [0x80] = BBU + 4, [0x94] = BBU + 1, + [0x90] = BBR + 4, [0x95] = BBR + 7, + + /* Quadrants */ + [0x96] = BBQ + BL, + [0x97] = BBQ + BR, + [0x98] = BBQ + TL, + [0x99] = BBQ + TL + BL + BR, + [0x9a] = BBQ + TL + BR, + [0x9b] = BBQ + TL + TR + BL, + [0x9c] = BBQ + TL + TR + BR, + [0x9d] = BBQ + TR, + [0x9e] = BBQ + BL + TR, + [0x9f] = BBQ + BL + TR + BR, + + /* Shades, data is an alpha value in 25% units (1/4, 1/2, 3/4) */ + [0x91] = BBS + 1, [0x92] = BBS + 2, [0x93] = BBS + 3, + + /* U+2504 - U+250B, U+254C - U+254F: unsupported (dashes) */ + /* U+2571 - U+2573: unsupported (diagonals) */ +}; diff --git a/config.def.h b/config.def.h index 90a5310..24e0e14 100644 --- a/config.def.h +++ b/config.def.h @@ -73,6 +73,18 @@ static unsigned int blinktimeout = 800; */ static unsigned int cursorthickness = 2; +/* + * 1: render most of the lines/blocks characters without using the font for + * perfect alignment between cells (U2500 - U259F except dashes/diagonals). + * Bold affects lines thickness if boxdraw_bold is not 0. Italic is ignored. + * 0: disable (render all U25XX glyphs normally from the font). + */ +const int boxdraw = 0; +const int boxdraw_bold = 0; + +/* braille (U28XX): 1: render as adjacent "pixels", 0: use font */ +const int boxdraw_braille = 0; + /* * bell volume. It must be a value between -100 and 100. Use 0 for disabling * it diff --git a/config.def.h.orig b/config.def.h.orig index 56921d2..90a5310 100644 --- a/config.def.h.orig +++ b/config.def.h.orig @@ -6,6 +6,12 @@ * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; +/* Spare fonts */ +static char *font2[] = { +/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */ +/* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */ +}; + static int borderpx = 2; /* @@ -175,6 +181,11 @@ static unsigned int defaultattr = 11; */ static uint forcemousemod = ShiftMask; +/* + * Command used to query unicode glyphs. + */ +char *iso14755_cmd = "dmenu -w \"$WINDOWID\" -p codepoint: 7) + return; + if ((utf32 = strtoul(us, &e, 16)) == ULONG_MAX || + (*e != '\n' && *e != '\0')) + return; + + ttywrite(uc, utf8encode(utf32, uc), 1); +} + void toggleprinter(const Arg *arg) { diff --git a/st.h b/st.h index acb22ef..cdca9f2 100644 --- a/st.h +++ b/st.h @@ -33,6 +33,7 @@ enum glyph_attribute { ATTR_WRAP = 1 << 8, ATTR_WIDE = 1 << 9, ATTR_WDUMMY = 1 << 10, + ATTR_BOXDRAW = 1 << 11, ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT, }; @@ -111,6 +112,14 @@ void *xmalloc(size_t); void *xrealloc(void *, size_t); char *xstrdup(char *); +int isboxdraw(Rune); +ushort boxdrawindex(const Glyph *); +#ifdef XFT_VERSION +/* only exposed to x.c, otherwise we'll need Xft.h for the types */ +void boxdraw_xinit(Display *, Colormap, XftDraw *, Visual *); +void drawboxes(int, int, int, int, XftColor *, XftColor *, const XftGlyphFontSpec *, int); +#endif + /* config.h globals */ extern char *utmp; extern char *scroll; @@ -123,4 +132,5 @@ extern char *termname; extern unsigned int tabspaces; extern unsigned int defaultfg; extern unsigned int defaultbg; +extern const int boxdraw, boxdraw_bold, boxdraw_braille; extern char *iso14755_cmd; diff --git a/st.h.orig b/st.h.orig index 122b489..acb22ef 100644 --- a/st.h.orig +++ b/st.h.orig @@ -80,7 +80,6 @@ typedef union { void die(const char *, ...); void redraw(void); void draw(void); - void iso14755(const Arg *); void printscreen(const Arg *); void printsel(const Arg *); diff --git a/st.h.rej b/st.h.rej index f3cf619..e8c85b5 100644 --- a/st.h.rej +++ b/st.h.rej @@ -1,10 +1,7 @@ --- st.h +++ st.h -@@ -81,6 +81,7 @@ void die(const char *, ...); - void redraw(void); - void draw(void); - -+void externalpipe(const Arg *); - void printscreen(const Arg *); - void printsel(const Arg *); - void sendbreak(const Arg *); +@@ -131,3 +140,4 @@ extern char *termname; + extern unsigned int tabspaces; + extern unsigned int defaultfg; + extern unsigned int defaultbg; ++extern const int boxdraw, boxdraw_bold, boxdraw_braille; diff --git a/st.o b/st.o index 8fcdd36..b2327d7 100644 Binary files a/st.o and b/st.o differ diff --git a/test b/test new file mode 100644 index 0000000..f7c03dd --- /dev/null +++ b/test @@ -0,0 +1,341 @@ +Single width, hollow. +โ”Œโ”€โ” )0lqk +โ”‚ โ”‚ )0x x +โ””โ”€โ”˜ )0mqj +โ”Œโ”€โ” +โ”‚ โ”‚ +โ””โ”€โ”˜ + +Single width, single fill. +โ”Œโ”ฌโ” )0lwk +โ”œโ”ผโ”ค )0tnu +โ””โ”ดโ”˜ )0mvj +โ”Œโ”ฌโ” +โ”œโ”ผโ”ค +โ””โ”ดโ”˜ + +Double width, hollow. +โ”โ”โ”“ )0  +โ”ƒ โ”ƒ )0  +โ”—โ”โ”› )0  +โ•”โ•โ•— +โ•‘ โ•‘ +โ•šโ•โ• + +Double width, double fill. +โ”โ”ณโ”“ )0  +โ”ฃโ•‹โ”ซ )0  +โ”—โ”ปโ”› )0  +โ•”โ•ฆโ•— +โ• โ•ฌโ•ฃ +โ•šโ•ฉโ• + +Double width, single fill. +โ”โ”ฏโ”“ )0  +โ” โ”ผโ”จ )0 n  +โ”—โ”ทโ”› )0  +โ•”โ•คโ•— +โ•Ÿโ”ผโ•ข +โ•šโ•งโ• + +Single width, double fill. +โ”Œโ”ฐโ” )0l k +โ”โ•‹โ”ฅ )0  +โ””โ”ธโ”˜ )0m j +โ”Œโ•ฅโ” +โ•žโ•ฌโ•ก +โ””โ•จโ”˜ + +Single width, mixed fill (double horizontal, single vertical). +โ”Œโ”ฌโ” )0lwk +โ”โ”ฟโ”ฅ )0  +โ””โ”ดโ”˜ )0mvj +โ”Œโ”ฌโ” +โ•žโ•ชโ•ก +โ””โ”ดโ”˜ + +Double width, mixed fill (double vertical, single horizontal). +โ”โ”ณโ”“ )0  +โ” โ•‚โ”จ )0  +โ”—โ”ปโ”› )0  +โ•”โ•ฆโ•— +โ•Ÿโ•ซโ•ข +โ•šโ•ฉโ• + +Double horizontal, single vertical. +โ”โ”‘ +โ”•โ”™ +โ•’โ•• +โ•˜โ•› + +Double vertical, single horizontal. +โ”Žโ”’ +โ”–โ”š +โ•“โ•– +โ•™โ•œ + +Single width, double, triple and quadruple dash. +โ”Œโ•Œโ•Œโ” โ”Œโ”„โ”„โ” โ”Œโ”ˆโ”ˆโ” +โ•Ž โ•Ž โ”† โ”† โ”Š โ”Š +โ•Ž โ•Ž โ”† โ”† โ”Š โ”Š +โ””โ•Œโ•Œโ”˜ โ””โ”„โ”„โ”˜ โ””โ”ˆโ”ˆโ”˜ + +Double width, double, triple and quadruple dash. +โ”โ•โ•โ”“ โ”โ”…โ”…โ”“ โ”โ”‰โ”‰โ”“ +โ• โ• โ”‡ โ”‡ โ”‹ โ”‹ +โ• โ• โ”‡ โ”‡ โ”‹ โ”‹ +โ”—โ•โ•โ”› โ”—โ”…โ”…โ”› โ”—โ”‰โ”‰โ”› + +One single, two double lines meet. +โ”ขโ”ช โ”ฒโ”ฑ +โ”กโ”ฉ โ”บโ”น + +One double, two single lines meet. +โ”žโ”ฆ โ”ญโ”ฎ +โ”Ÿโ”ง โ”ตโ”ถ + +One single, three double lines meet. +โ•‡ โ•‰โ•Š +โ•ˆ + +One double, three single lines meet. +โ• โ”พโ”ฝ +โ•€ + +Two double, two single lines meet. +โ•†โ•… +โ•„โ•ƒ + +Mixed width, starting, ending and changing width mid-character. +โ•ท โ•ป โ•ถโ•ผโ•ธ +โ•ฝ โ•ฟ โ•บโ•พโ•ด +โ•น โ•ต + +Single line with vertical lines crossing + โ•‘ โ”ƒ โ”‚ โ”‚ โ”‚ โ”ƒ โ•‘ +โ”€โ•ซโ”€โ•‚โ”€โ”ผโ”€๐Ÿฎฏโ”€โ”ผโ”€โ•‚โ”€โ•ซโ”€ + โ•‘ โ”ƒ โ”‚ โ”‚ โ”‚ โ”ƒ โ•‘ + +Rounded. +โ•ญโ”€โ•ฎ +โ”‚ โ”‚ +โ•ฐโ”€โ•ฏ + +Diagonals. +โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ณ โ•ณ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณโ•ณโ•ณโ•ณโ•ณโ•ณโ•ณ + โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณโ•ณโ•ณโ•ณโ•ณโ•ณโ•ณ + โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณโ•ณโ•ณโ•ณโ•ณโ•ณโ•ณ + โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณโ•ณโ•ณโ•ณโ•ณโ•ณโ•ณ + โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณโ•ณโ•ณโ•ณโ•ณโ•ณโ•ณ + โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ โ•ณ +โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ณ โ•ณ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ณ โ•ณ โ•ณ โ•ณ + +โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑ + โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒ + โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑ + โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒ + โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฑโ•ฒ โ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑ +โ•ฑ โ•ฒ โ•ฑ โ•ฒ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฒโ•ฑ โ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒ + + +Block elements. + +โ–ˆโ– +โ–โ– +โ–ˆโ– ๐Ÿญฝโ–”๐Ÿญถ๐Ÿญท๐Ÿญธ๐Ÿญน๐Ÿญบ๐Ÿญปโ–๐Ÿฎ€๐Ÿฎ๐Ÿฎ€โ–๐Ÿญป๐Ÿญบ๐Ÿญน๐Ÿญธ๐Ÿญท๐Ÿญถโ–”๐Ÿญพ +๐Ÿฎ‹โ–Ž โ– โ–• +๐Ÿญฐ๐Ÿญฐ ๐Ÿญฐ ๐Ÿญต +๐Ÿฎ‹โ–Ž ๐Ÿญฑ โ– โ–Œ โ–›โ–€#โ–€โ–œ ๐Ÿญด +๐ŸฎŠโ– ๐Ÿญฒ โ–„โ–žโ–€ โ–—โ–„โ–€โ–˜ โ–Œโ–—โ–„โ––โ– ๐Ÿญณ +๐Ÿญฑ๐Ÿญฑ ๐Ÿญณ โ–Œ โ– #โ–#โ–Œ# ๐Ÿญฒ +๐ŸฎŠโ– ๐Ÿญด โ–€โ–šโ–„ โ–โ–€โ–„โ–– โ–Œโ–โ–€โ–˜โ– ๐Ÿญฑ +๐Ÿฎ‰โ–Œ ๐Ÿญต โ– โ–Œ โ–™โ–„#โ–„โ–Ÿ ๐Ÿญฐ +๐Ÿญฒ๐Ÿญฒ โ–• โ– +๐Ÿฎ‰โ–Œ โ–• โ–โ–‚โ–ƒโ–„โ–…โ–†โ–‡โ–ˆ โ––# โ–—# โ– +โ–โ–‹ โ–• โ–• โ–‰ โ–Œ# โ–# โ– +๐Ÿญณ๐Ÿญณ โ–• ๐Ÿฎ‡ โ–Š โ–# โ–Œ# โ– +โ–โ–‹ โ–• ๐Ÿฎˆ โ–‘ โ–‹ โ–# โ–˜# โ– +๐Ÿฎˆโ–Š ๐Ÿญต โ– โ–’โ–‘ โ–Œ ๐Ÿญฐ +๐Ÿญด๐Ÿญด ๐Ÿญด ๐Ÿฎ‰ โ–“โ–’โ–‘ โ– โ–Œ# โ–# ๐Ÿญฑ +๐Ÿฎˆโ–Š ๐Ÿญณ ๐ŸฎŠ โ–ˆโ–“โ–’โ–‘ โ–Ž โ–š# โ–ž# ๐Ÿญฒ +๐Ÿฎ‡โ–‰ ๐Ÿญฒ ๐Ÿฎ‹ โ– โ–# โ–Œ# ๐Ÿญณ +๐Ÿญต๐Ÿญต ๐Ÿญฑ โ–ˆ๐Ÿฎ†๐Ÿฎ…๐Ÿฎ„โ–€๐Ÿฎƒ๐Ÿฎ‚โ–” ๐Ÿญด +๐Ÿฎ‡โ–‰ ๐Ÿญฐ ๐Ÿญต +โ–•โ–ˆ โ– โ–• +โ–•โ–• ๐Ÿญผโ–๐Ÿญป๐Ÿญบ๐Ÿญน๐Ÿญธ๐Ÿญท๐Ÿญถโ–”๐Ÿฎ€๐Ÿฎ๐Ÿฎ€โ–”๐Ÿญถ๐Ÿญท๐Ÿญธ๐Ÿญน๐Ÿญบ๐Ÿญปโ–๐Ÿญฟ +โ–•โ–ˆ + โ–ˆโ–”โ–ˆโ–‡๐Ÿญถโ–‡โ–†๐Ÿญทโ–†โ–…๐Ÿญธโ–…โ–„๐Ÿญนโ–„โ–ƒ๐Ÿญบโ–ƒโ–‚๐Ÿญปโ–‚โ–โ–โ– + โ–”โ–”โ–”๐Ÿฎ‚๐Ÿญถ๐Ÿฎ‚๐Ÿฎƒ๐Ÿญท๐Ÿฎƒโ–€๐Ÿญธโ–€๐Ÿฎ„๐Ÿญน๐Ÿฎ„๐Ÿฎ…๐Ÿญบ๐Ÿฎ…๐Ÿฎ†๐Ÿญป๐Ÿฎ†โ–ˆโ–โ–ˆ + +Shades. + โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ + โ–‘โ–‘โ–‘โ–‘โ–‘ โ–’โ–’โ–’โ–’โ–’ โ–“โ–“โ–“โ–“โ–“ โ–ˆโ–ˆโ–“โ–“โ–“โ–“โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–’โ–’โ–’โ–’โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ + โ–‘ โ–‘โ–‘โ–‘โ–‘โ–‘ โ–’ โ–’โ–’โ–’โ–’โ–’ โ–“ โ–“โ–“โ–“โ–“โ–“ โ–ˆโ–ˆโ–“โ–“โ–“โ–“โ–“โ–ˆโ–ˆโ–“โ–ˆโ–ˆโ–’โ–’โ–’โ–’โ–’โ–ˆโ–ˆโ–’โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–ˆโ–ˆโ–‘โ–ˆโ–ˆ + โ–‘โ–‘โ–‘โ–‘โ–‘ โ–’โ–’โ–’โ–’โ–’ โ–“โ–“โ–“โ–“โ–“ โ–ˆโ–ˆโ–“โ–“โ–“โ–“โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–’โ–’โ–’โ–’โ–’โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ + โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ + +Hatchings and Checkerboards + +๐Ÿฎ˜๐Ÿฎ˜๐Ÿฎ˜๐Ÿฎ˜ ๐Ÿฎ™๐Ÿฎ™๐Ÿฎ™๐Ÿฎ™ ๐Ÿฎ˜๐Ÿฎ™๐Ÿฎ˜๐Ÿฎ™ ๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ• ๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–๐Ÿฎ– ๐Ÿฎ•๐Ÿฎ–๐Ÿฎ•๐Ÿฎ– +๐Ÿฎ˜๐Ÿฎ˜๐Ÿฎ˜๐Ÿฎ˜ ๐Ÿฎ™๐Ÿฎ™๐Ÿฎ™๐Ÿฎ™ ๐Ÿฎ™๐Ÿฎ˜๐Ÿฎ™๐Ÿฎ˜ ๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ• ๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–๐Ÿฎ– ๐Ÿฎ–๐Ÿฎ•๐Ÿฎ–๐Ÿฎ• +๐Ÿฎ˜๐Ÿฎ˜๐Ÿฎ˜๐Ÿฎ˜ ๐Ÿฎ™๐Ÿฎ™๐Ÿฎ™๐Ÿฎ™ ๐Ÿฎ˜๐Ÿฎ™๐Ÿฎ˜๐Ÿฎ™ ๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ• ๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–๐Ÿฎ– ๐Ÿฎ•๐Ÿฎ–๐Ÿฎ•๐Ÿฎ– +๐Ÿฎ˜๐Ÿฎ˜๐Ÿฎ˜๐Ÿฎ˜ ๐Ÿฎ™๐Ÿฎ™๐Ÿฎ™๐Ÿฎ™ ๐Ÿฎ™๐Ÿฎ˜๐Ÿฎ™๐Ÿฎ˜ ๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ• ๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–๐Ÿฎ– ๐Ÿฎ–๐Ÿฎ•๐Ÿฎ–๐Ÿฎ• + + +๐Ÿฌ‡๐Ÿฌ‹๐Ÿฌƒ ๐Ÿฌฆ๐Ÿฌน๐Ÿฌ“ ๐Ÿฌž๐Ÿฌญ๐Ÿฌ ๐Ÿฌ ๐Ÿฌฐ๐Ÿฌ ๐Ÿฌ๐Ÿฌ‚๐Ÿฌ€ ๐Ÿฌ‰๐ŸฌŽ๐Ÿฌ„ ๐Ÿฌ‡๐Ÿฌ‹๐Ÿฌƒ + +๐Ÿฌญ๐Ÿฌž๐Ÿฌ ๐Ÿฌน๐Ÿฌฆ๐Ÿฌ“ +โ–ˆโ–โ–Œ โ–ˆโ–โ–Œ +๐Ÿฌ‚๐Ÿฌ๐Ÿฌ€ ๐ŸฌŽ๐Ÿฌ‰๐Ÿฌ„ + + ๐Ÿฌญ๐Ÿฌญ๐Ÿฌญ +๐Ÿฌญ๐Ÿฌญ๐Ÿฌญ ๐Ÿฌš๐Ÿฌ‹๐Ÿฌฉ ๐Ÿฌ•๐Ÿฌ‚๐Ÿฌจ ๐Ÿฌน๐Ÿฌน๐Ÿฌน ๐Ÿฌ๐ŸฌŽ๐Ÿฌฌ ๐Ÿฌด๐Ÿฌฐ๐Ÿฌธ ๐Ÿฌ›๐Ÿฌ‹๐Ÿฌซ +โ–Œ โ– โ–Œ โ– โ–Œ โ– โ–Œ โ– โ–Œ โ– โ–Œ โ– โ–Œ โ– +๐Ÿฌ‚๐Ÿฌ‚๐Ÿฌ‚ ๐ŸฌŒ๐Ÿฌ‹๐Ÿฌ ๐Ÿฌฒ๐Ÿฌญ๐Ÿฌท ๐ŸฌŽ๐ŸฌŽ๐ŸฌŽ ๐Ÿฌบ๐Ÿฌน๐Ÿฌป ๐Ÿฌด๐Ÿฌฐ๐Ÿฌธ ๐Ÿฌ›๐Ÿฌ‹๐Ÿฌซ + ๐Ÿฌ‚๐Ÿฌ‚๐Ÿฌ‚ + + ๐Ÿฌž๐Ÿฌญ๐Ÿฌ +๐Ÿฌž๐Ÿฌญ๐Ÿฌ ๐Ÿฌฆ๐Ÿฌ‹๐Ÿฌ“ โ–๐Ÿฌ‚โ–Œ ๐Ÿฌฆ๐Ÿฌน๐Ÿฌ“ โ–๐ŸฌŽโ–Œ โ–๐Ÿฌฐโ–Œ โ–๐Ÿฌ‹โ–Œ +โ– โ–Œ โ– โ–Œ โ– โ–Œ โ– โ–Œ โ– โ–Œ โ– โ–Œ โ– โ–Œ +๐Ÿฌ๐Ÿฌ‚๐Ÿฌ€ ๐Ÿฌ‰๐Ÿฌ‹๐Ÿฌ„ โ–๐Ÿฌญโ–Œ ๐Ÿฌ‰๐ŸฌŽ๐Ÿฌ„ โ–๐Ÿฌนโ–Œ โ–๐Ÿฌฐโ–Œ โ–๐Ÿฌ‹โ–Œ + ๐Ÿฌ๐Ÿฌ‚๐Ÿฌ€ + + ๐Ÿฌž ๐Ÿฌ +๐Ÿฌ–๐Ÿฌ๐Ÿฌ‡๐Ÿฌ— ๐Ÿฌˆ๐Ÿฌ€๐Ÿฌ๐Ÿฌ… ๐Ÿฌค๐Ÿฌƒ๐Ÿฌž๐Ÿฌข +๐Ÿฌ  ๐Ÿฌž๐Ÿฌข ๐Ÿฌ”๐Ÿฌ“๐Ÿฌฆ๐Ÿฌง ๐Ÿฌ–๐Ÿฌ ๐Ÿฌ +๐Ÿฌฃ๐Ÿฌ„๐Ÿฌ๐Ÿฌ… ๐Ÿฌ ๐Ÿฌ€ ๐Ÿฌˆ๐Ÿฌ€๐Ÿฌ‰๐Ÿฌ˜ + + +๐Ÿฌฅ ๐Ÿฌ™ ๐Ÿฌ† ๐ŸฌŠ ๐Ÿฌ’ ๐Ÿฌก ๐Ÿฌ‘ ๐ŸฌŸ +๐Ÿฌ‡ ๐Ÿฌƒ ๐Ÿฌ ๐Ÿฌ  ๐Ÿฌƒ ๐Ÿฌ‡ ๐Ÿฌƒ ๐Ÿฌ‡ +๐Ÿฌณ ๐Ÿฌถ ๐Ÿฌฑ ๐Ÿฌต ๐Ÿฌฎ ๐Ÿฌฏ ๐ŸฌŸ ๐Ÿฌ‘ + + + ๐Ÿฌž๐Ÿฌป๐Ÿฌบ๐Ÿฌ ๐Ÿฌž๐Ÿฌœ๐Ÿฌช๐Ÿฌ ๐Ÿฌž๐Ÿฌ…๐Ÿฌˆ๐Ÿฌ + ๐Ÿฌต๐Ÿฌ๐Ÿฌ€๐Ÿฌ๐Ÿฌฌ๐Ÿฌฑ ๐Ÿฌต๐Ÿฌ† ๐ŸฌŠ๐Ÿฌฑ ๐Ÿฌ–๐Ÿฌ€ ๐Ÿฌ๐Ÿฌข +๐Ÿฌป๐Ÿฌ† ๐ŸฌŠ๐Ÿฌบ ๐Ÿฌœ๐Ÿฌ€ ๐Ÿฌ๐Ÿฌช ๐Ÿฌ” ๐Ÿฌง +๐Ÿฌฌ๐Ÿฌฑ ๐Ÿฌต๐Ÿฌ ๐Ÿฌช๐Ÿฌ ๐Ÿฌž๐Ÿฌœ ๐Ÿฌฃ ๐Ÿฌ˜ + ๐ŸฌŠ๐Ÿฌบ๐Ÿฌ๐Ÿฌž๐Ÿฌป๐Ÿฌ† ๐ŸฌŠ๐Ÿฌฑ ๐Ÿฌต๐Ÿฌ† ๐Ÿฌˆ๐Ÿฌ ๐Ÿฌž๐Ÿฌ… + ๐Ÿฌ๐Ÿฌฌ๐Ÿฌ๐Ÿฌ€ ๐Ÿฌ๐Ÿฌช๐Ÿฌœ๐Ÿฌ€ ๐Ÿฌ๐Ÿฌข๐Ÿฌ–๐Ÿฌ€ + + +Slope 1/3. +๐Ÿญˆ๐Ÿญ†๐Ÿญ‚๐Ÿญ๐Ÿญ‘๐Ÿฌฝ ๐Ÿญˆ๐Ÿฌญ๐Ÿญ†๐Ÿฌน๐Ÿญ‚โ–ˆ๐Ÿญ๐Ÿฌน๐Ÿญ‘๐Ÿฌญ๐Ÿฌฝ +๐Ÿญฃ๐Ÿญง๐Ÿญ“๐Ÿญž๐Ÿญœ๐Ÿญ˜ โ–ˆ#########โ–ˆ + ๐Ÿญฃ๐Ÿฌ‚๐Ÿญง๐ŸฌŽ๐Ÿญ“โ–ˆ๐Ÿญž๐ŸฌŽ๐Ÿญœ๐Ÿฌ‚๐Ÿญ˜ + +Slope 2/3. + ๐Ÿญ‡๐Ÿฌผ ๐Ÿฌž๐Ÿฌ +๐Ÿญ‡๐Ÿญ„๐Ÿญ๐Ÿฌผ ๐ŸญŠ๐Ÿญ๐ŸญŒ๐Ÿฌฟ ๐Ÿญ‡๐Ÿฌญ๐Ÿญ„โ–ˆ๐Ÿญ๐Ÿฌญ๐Ÿฌผ ๐ŸญŠ๐Ÿฌน๐Ÿญ๐ŸญŒ๐Ÿฌน๐Ÿฌฟ +๐Ÿญข๐Ÿญ•๐Ÿญ ๐Ÿญ— ๐Ÿญฅ๐Ÿญ’๐Ÿญ๐Ÿญš โ–#####โ–Œ โ–ˆ####โ–ˆ + ๐Ÿญข๐Ÿญ— ๐Ÿญข๐Ÿฌ‚๐Ÿญ•โ–ˆ๐Ÿญ ๐Ÿฌ‚๐Ÿญ— ๐Ÿญฅ๐ŸฌŽ๐Ÿญ’๐Ÿญ๐ŸฌŽ๐Ÿญš + ๐Ÿฌ๐Ÿฌ€ +Slope 1. +โ—ขโ—ฃ ๐Ÿฎž๐ŸฎŸ +โ—ฅโ—ค ๐Ÿฎ๐Ÿฎœ + + +Slope 4/3. + ๐Ÿญ‰๐Ÿฌน๐Ÿฌพ +๐Ÿญ‰๐Ÿฌพ โ–#โ–Œ +๐Ÿญƒ๐ŸญŽ ๐Ÿฌž๐Ÿญƒ#๐ŸญŽ๐Ÿฌ +๐Ÿญ”๐ŸญŸ ๐Ÿฌ๐Ÿญ”#๐ŸญŸ๐Ÿฌ€ +๐Ÿญค๐Ÿญ™ โ–#โ–Œ + ๐Ÿญค๐ŸฌŽ๐Ÿญ™ + +Slope 2. + ๐Ÿญ‹โ–ˆ๐Ÿญ€ +๐Ÿญ‹๐Ÿญ€ โ–#โ–Œ +๐Ÿญ…๐Ÿญ ๐Ÿญ…#๐Ÿญ +๐Ÿญ–๐Ÿญก ๐Ÿญ–#๐Ÿญก +๐Ÿญฆ๐Ÿญ› โ–#โ–Œ + ๐Ÿญฆโ–ˆ๐Ÿญ› + + +Diagonal quarters. + ๐Ÿญฏ ๐Ÿญฏ ๐Ÿญฏ ๐Ÿญฏ + ๐Ÿญฏ ๐Ÿญซ ๐Ÿญฎ๐Ÿญซ๐Ÿญฌ ๐Ÿฎž๐Ÿญซ๐ŸฎŸ โ—ข๐Ÿญซโ—ฃ ๐Ÿญฏ๐Ÿญฏ๐Ÿญฏ๐Ÿญฏ + ๐Ÿญซ ๐Ÿญฏ ๐Ÿญฏ ๐Ÿฎž๐Ÿฎœ ๐Ÿฎ๐ŸฎŸ โ—ขโ—ค โ—ฅโ—ฃ ๐Ÿญฎ๐Ÿฎ›๐Ÿฎ›๐Ÿญฌ๐Ÿฎš๐Ÿฎš๐Ÿฎš๐Ÿฎš +๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿฎ›๐Ÿฎ›๐Ÿญฌ๐Ÿฎš๐Ÿฎš๐Ÿฎš๐Ÿฎš + ๐Ÿญฉ ๐Ÿญญ ๐Ÿญญ ๐Ÿฎ๐ŸฎŸ ๐Ÿฎž๐Ÿฎœ โ—ฅโ—ฃ โ—ขโ—ค ๐Ÿญฎ๐Ÿฎ›๐Ÿฎ›๐Ÿญฌ๐Ÿฎš๐Ÿฎš๐Ÿฎš๐Ÿฎš + ๐Ÿญญ ๐Ÿญฉ ๐Ÿญฎ๐Ÿญฉ๐Ÿญฌ ๐Ÿฎ๐Ÿญฉ๐Ÿฎœ โ—ฅ๐Ÿญฉโ—ค ๐Ÿญญ๐Ÿญญ๐Ÿญญ๐Ÿญญ + ๐Ÿญญ ๐Ÿญญ ๐Ÿญญ ๐Ÿญญ + + ๐Ÿญฏ ๐Ÿญฏ ๐Ÿญฏ + โ—ขโ—ฃโ—ขโ—ฃโ—ขโ—ฃ โ—ข๐Ÿญซ๐Ÿญฉ๐Ÿญซ๐Ÿญฉ๐Ÿญซโ—ฃ โ—ข๐Ÿญฉ๐Ÿญฉ๐Ÿญฉโ—ฃ ๐Ÿญฏ๐Ÿญฏ๐Ÿญฏ +โ—ขโ—คโ—ฅโ—คโ—ฅโ—คโ—ฅโ—ฃ ๐Ÿญฎ๐Ÿญช ๐Ÿญญ ๐Ÿญญ ๐Ÿญจ๐Ÿญฌ โ—ขโ—ค๐Ÿญญ๐Ÿญญ๐Ÿญญโ—ฅโ—ฃ โ—ข๐Ÿญซ๐Ÿญซ๐Ÿญซโ—ฃ +โ—ฅโ—ฃ โ—ขโ—ค ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ +โ—ขโ—ค โ—ฅโ—ฃ ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ +โ—ฅโ—ฃ โ—ขโ—ค ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ ๐Ÿญฎ๐Ÿญช ๐Ÿญฎ๐Ÿญช ๐Ÿญจ๐Ÿญฌ +โ—ขโ—ค โ—ฅโ—ฃ ๐Ÿญฎ๐Ÿญช ๐Ÿญฏ ๐Ÿญฏ ๐Ÿญจ๐Ÿญฌ โ—ฅโ—ฃ๐Ÿญฏ๐Ÿญฏ๐Ÿญฏโ—ขโ—ค โ—ฅ๐Ÿญฉ๐Ÿญฉ๐Ÿญฉโ—ค +โ—ฅโ—ฃโ—ขโ—ฃโ—ขโ—ฃโ—ขโ—ค โ—ฅ๐Ÿญฉ๐Ÿญซ๐Ÿญฉ๐Ÿญซ๐Ÿญฉโ—ค โ—ฅ๐Ÿญซ๐Ÿญซ๐Ÿญซโ—ค ๐Ÿญญ๐Ÿญญ๐Ÿญญ + โ—ฅโ—คโ—ฅโ—คโ—ฅโ—ค ๐Ÿญญ ๐Ÿญญ ๐Ÿญญ + + ๐Ÿฎžโ—ฃ๐Ÿฎžโ—ฃ๐Ÿฎžโ—ฃ โ—ข๐ŸฎŸโ—ข๐ŸฎŸโ—ข๐ŸฎŸ โ•ฑ๐ŸฎŸโ•ฑ๐ŸฎŸโ•ฑ๐ŸฎŸ ๐Ÿฎžโ•ฒ๐Ÿฎžโ•ฒ๐Ÿฎžโ•ฒ +๐Ÿฎž๐Ÿฎœโ—ฅ๐Ÿฎœโ—ฅ๐Ÿฎœโ—ฅโ—ฃ โ—ขโ—ค๐Ÿฎโ—ค๐Ÿฎโ—ค๐Ÿฎ๐ŸฎŸ โ•ฑโ•ฑ๐Ÿฎโ•ฑ๐Ÿฎโ•ฑ๐Ÿฎ๐ŸฎŸ ๐Ÿฎž๐Ÿฎœโ•ฒ๐Ÿฎœโ•ฒ๐Ÿฎœโ•ฒโ•ฒ +โ—ฅโ—ฃ ๐Ÿฎž๐Ÿฎœ ๐Ÿฎ๐ŸฎŸ โ—ขโ—ค ๐Ÿฎ๐ŸฎŸ โ•ฑโ•ฑ โ•ฒโ•ฒ ๐Ÿฎž๐Ÿฎœ +๐Ÿฎž๐Ÿฎœ โ—ฅโ—ฃ โ—ขโ—ค ๐Ÿฎ๐ŸฎŸ โ•ฑโ•ฑ ๐Ÿฎ๐ŸฎŸ ๐Ÿฎž๐Ÿฎœ โ•ฒโ•ฒ +โ—ฅโ—ฃ ๐Ÿฎž๐Ÿฎœ ๐Ÿฎ๐ŸฎŸ โ—ขโ—ค ๐Ÿฎ๐ŸฎŸ โ•ฑโ•ฑ โ•ฒโ•ฒ ๐Ÿฎž๐Ÿฎœ +๐Ÿฎž๐Ÿฎœ โ—ฅโ—ฃ โ—ขโ—ค ๐Ÿฎ๐ŸฎŸ โ•ฑโ•ฑ ๐Ÿฎ๐ŸฎŸ ๐Ÿฎž๐Ÿฎœ โ•ฒโ•ฒ +โ—ฅโ—ฃ๐Ÿฎžโ—ฃ๐Ÿฎžโ—ฃ๐Ÿฎž๐Ÿฎœ ๐Ÿฎ๐ŸฎŸโ—ข๐ŸฎŸโ—ข๐ŸฎŸโ—ขโ—ค ๐Ÿฎ๐ŸฎŸโ•ฑ๐ŸฎŸโ•ฑ๐ŸฎŸโ•ฑโ•ฑ โ•ฒโ•ฒ๐Ÿฎžโ•ฒ๐Ÿฎžโ•ฒ๐Ÿฎž๐Ÿฎœ + โ—ฅ๐Ÿฎœโ—ฅ๐Ÿฎœโ—ฅ๐Ÿฎœ ๐Ÿฎโ—ค๐Ÿฎโ—ค๐Ÿฎโ—ค ๐Ÿฎโ•ฑ๐Ÿฎโ•ฑ๐Ÿฎโ•ฑ โ•ฒ๐Ÿฎœโ•ฒ๐Ÿฎœโ•ฒ๐Ÿฎœ + + โ•ฑโ—ฃโ•ฑโ—ฃโ•ฑโ—ฃ โ—ขโ•ฒโ—ขโ•ฒโ—ขโ•ฒ โ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒ ๐Ÿฎฃ๐Ÿฎง๐Ÿฎง๐Ÿฎง๐Ÿฎง๐Ÿฎข +โ•ฑโ•ฑโ—ฅโ•ฑโ—ฅโ•ฑโ—ฅโ—ฃ โ—ขโ—คโ•ฒโ—คโ•ฒโ—คโ•ฒโ•ฒ โ•ฑโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฒ ๐Ÿฎฃ๐Ÿฎจ๐Ÿฎง๐Ÿฎง๐Ÿฎง๐Ÿฎง๐Ÿฎฉ๐Ÿฎข +โ—ฅโ—ฃ โ•ฑโ•ฑ โ•ฒโ•ฒ โ—ขโ—ค โ•ฒโ•ฒ โ•ฑโ•ฑ ๐Ÿฎค๐Ÿฎค ๐Ÿฎฅ๐Ÿฎฅ +โ•ฑโ•ฑ โ—ฅโ—ฃ โ—ขโ—ค โ•ฒโ•ฒ โ•ฑโ•ฑ โ•ฒโ•ฒ ๐Ÿฎค๐Ÿฎค ๐Ÿฎฅ๐Ÿฎฅ +โ—ฅโ—ฃ โ•ฑโ•ฑ โ•ฒโ•ฒ โ—ขโ—ค โ•ฒโ•ฒ โ•ฑโ•ฑ ๐Ÿฎค๐Ÿฎค ๐Ÿฎฅ๐Ÿฎฅ +โ•ฑโ•ฑ โ—ฅโ—ฃ โ—ขโ—ค โ•ฒโ•ฒ โ•ฑโ•ฑ โ•ฒโ•ฒ ๐Ÿฎค๐Ÿฎค ๐Ÿฎฅ๐Ÿฎฅ +โ—ฅโ—ฃโ•ฑโ—ฃโ•ฑโ—ฃโ•ฑโ•ฑ โ•ฒโ•ฒโ—ขโ•ฒโ—ขโ•ฒโ—ขโ—ค โ•ฒโ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑโ•ฑ ๐Ÿฎก๐Ÿฎฉ๐Ÿฎฆ๐Ÿฎฆ๐Ÿฎฆ๐Ÿฎฆ๐Ÿฎจ๐Ÿฎ  + โ—ฅโ•ฑโ—ฅโ•ฑโ—ฅโ•ฑ โ•ฒโ—คโ•ฒโ—คโ•ฒโ—ค โ•ฒโ•ฑโ•ฒโ•ฑโ•ฒโ•ฑ ๐Ÿฎก๐Ÿฎฆ๐Ÿฎฆ๐Ÿฎฆ๐Ÿฎฆ๐Ÿฎ  + + โ•ท โ•ท ๐Ÿฎฃโ”€๐Ÿฎข ๐Ÿฎฃโ”€๐Ÿฎฆโ”€๐Ÿฎข +๐Ÿฎฃโ”€๐Ÿฎข โ”Œ๐Ÿฎงโ” โ•ถ๐Ÿฎญโ”€๐Ÿฎฌโ•ด โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ +โ”‚ โ”‚ ๐Ÿฎค ๐Ÿฎฅ โ”‚ โ”‚ ๐Ÿฎฃโ”€๐Ÿฎจโ”€๐Ÿฎฉโ”€๐Ÿฎข ๐Ÿฎฅโ”€๐Ÿฎฎโ”€๐Ÿฎค +๐Ÿฎกโ”€๐Ÿฎ  โ””๐Ÿฎฆโ”˜ โ•ถ๐Ÿฎซโ”€๐Ÿฎชโ•ด โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ + โ•ต โ•ต ๐Ÿฎกโ”€๐Ÿฎ  ๐Ÿฎกโ”€๐Ÿฎ  ๐Ÿฎกโ”€๐Ÿฎงโ”€๐Ÿฎ  + + โ–—๐Ÿฎ’โ–ˆ๐Ÿฎ’โ–– + โ–—โ–˜ โ–โ–– + ๐Ÿฎ” ๐Ÿฎ + โ–ˆ ๐Ÿฎโ–’๐ŸฎŒ + ๐Ÿฎ” ๐ŸฎŽ + โ–โ–– โ–—โ–˜ + โ–๐Ÿฎ‘โ–ˆ๐Ÿฎ‘โ–˜ + + + ยฝ + ๐Ÿฌค๐Ÿฌค๐Ÿฌค๐Ÿฌคโ…“โ–ˆ โ–ˆ ๐Ÿฌ—๐Ÿฌ—๐Ÿฌ—๐Ÿฌ— + ๐Ÿฌ—๐Ÿฌ—๐Ÿฌ—๐Ÿฌ—โ–ˆ โ–ˆ โ–ˆ๐Ÿฌค๐Ÿฌค๐Ÿฌค๐Ÿฌค + ๐Ÿฌค๐Ÿฌค๐Ÿฌค๐Ÿฌค โ–ˆ โ–ˆ ๐Ÿฌ—๐Ÿฌ—๐Ÿฌ—๐Ÿฌ— + ยผ ๐Ÿฌ—๐Ÿฌ—๐Ÿฌ—๐Ÿฌ—โ–ˆ โ–ˆ โ–ˆ๐Ÿฌค๐Ÿฌค๐Ÿฌค๐Ÿฌค +โ–’โ–’โ–’โ–’๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–โ–žโ–žโ–žโ–žยฝโ–ˆ โ–ˆ โ–šโ–šโ–šโ–š๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ โ–Ž ๐Ÿฎ‡ โ–Ž ๐Ÿฎ‡ +โ–’โ–’โ–’โ–’๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–โ–žโ–žโ–žโ–žโ–ˆ โ–ˆ โ–ˆโ–šโ–šโ–šโ–š๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ ๐Ÿฎ‚๐Ÿฎ•๐Ÿฎ—๐Ÿฎ–๐Ÿฎ‚ ๐Ÿฎ‚๐Ÿฎ–๐Ÿฎ—๐Ÿฎ•๐Ÿฎ‚ +โ–’โ–’โ–’โ–’๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–โ–žโ–žโ–žโ–ž โ–ˆ โ–ˆ โ–šโ–šโ–šโ–š๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ โ–‚๐Ÿฎ•๐Ÿฎ—๐Ÿฎ–โ–‚ โ–‚๐Ÿฎ–๐Ÿฎ—๐Ÿฎ•โ–‚ +โ–’โ–’โ–’โ–’๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–๐Ÿฎ–โ–žโ–žโ–žโ–žโ–ˆ โ–ˆ โ–ˆโ–šโ–šโ–šโ–š๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ•๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ โ–Ž ๐Ÿฎ‡ โ–Ž ๐Ÿฎ‡ + ๐Ÿฌ˜๐Ÿฌ˜๐Ÿฌ˜๐Ÿฌ˜โ…”โ–ˆ โ–ˆ ๐Ÿฌฃ๐Ÿฌฃ๐Ÿฌฃ๐Ÿฌฃ + ๐Ÿฌง๐Ÿฌง๐Ÿฌง๐Ÿฌงโ–ˆ โ–ˆ โ–ˆ๐Ÿฌ”๐Ÿฌ”๐Ÿฌ”๐Ÿฌ” + ๐Ÿฌฃ๐Ÿฌฃ๐Ÿฌฃ๐Ÿฌฃ โ–ˆ โ–ˆ ๐Ÿฌ˜๐Ÿฌ˜๐Ÿฌ˜๐Ÿฌ˜ + ๐Ÿฌ”๐Ÿฌ”๐Ÿฌ”๐Ÿฌ”โ–ˆ โ–ˆ โ–ˆ๐Ÿฌง๐Ÿฌง๐Ÿฌง๐Ÿฌง + + ๐Ÿฎฃ๐Ÿฎข ๐Ÿฎฃ๐Ÿฎข ๐Ÿฎฃ๐Ÿฎข๐Ÿฎฃ๐Ÿฎข +๐Ÿฎฃ๐Ÿฎ ๐Ÿฎก๐Ÿฎข๐Ÿฎฃ๐Ÿฎจ๐Ÿฎฉ๐Ÿฎข ๐Ÿฎญ๐Ÿฎฌ ๐Ÿฎก๐Ÿฎฉ๐Ÿฎจ๐Ÿฎ  ๐Ÿฎจ๐Ÿฎจ๐Ÿฎจ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎฉ ๐Ÿฎญ๐Ÿฎญ๐Ÿฎญ๐Ÿฎฌ๐Ÿฎฌ๐Ÿฎฌ ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ +๐Ÿฎก๐Ÿฎข๐Ÿฎฃ๐Ÿฎ ๐Ÿฎก๐Ÿฎฉ๐Ÿฎจ๐Ÿฎ  ๐Ÿฎซ๐Ÿฎช ๐Ÿฎฃ๐Ÿฎจ๐Ÿฎฉ๐Ÿฎข ๐Ÿฎจ๐Ÿฎจ๐Ÿฎจ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎฉ ๐Ÿฎญ๐Ÿฎญ๐Ÿฎญ๐Ÿฎฌ๐Ÿฎฌ๐Ÿฎฌ ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ + ๐Ÿฎก๐Ÿฎ  ๐Ÿฎก๐Ÿฎ  ๐Ÿฎก๐Ÿฎ ๐Ÿฎก๐Ÿฎ  ๐Ÿฎจ๐Ÿฎจ๐Ÿฎจ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎฉ ๐Ÿฎญ๐Ÿฎญ๐Ÿฎญ๐Ÿฎฌ๐Ÿฎฌ๐Ÿฎฌ ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ + ๐Ÿฎฃ๐Ÿฎง๐Ÿฎข ๐Ÿฎฃ๐Ÿฎง๐Ÿฎข ๐Ÿฎฃ๐Ÿฎฆ๐Ÿฎข ๐Ÿฎญ๐Ÿฎฆ๐Ÿฎฌ ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎจ๐Ÿฎจ๐Ÿฎจ ๐Ÿฎซ๐Ÿฎซ๐Ÿฎซ๐Ÿฎช๐Ÿฎช๐Ÿฎช ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ + ๐Ÿฎค ๐Ÿฎฅ ๐Ÿฎค๐Ÿฎฎ๐Ÿฎฅ ๐Ÿฎฅ ๐Ÿฎค ๐Ÿฎฅ ๐Ÿฎค ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎจ๐Ÿฎจ๐Ÿฎจ ๐Ÿฎซ๐Ÿฎซ๐Ÿฎซ๐Ÿฎช๐Ÿฎช๐Ÿฎช ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ + ๐Ÿฎก๐Ÿฎฆ๐Ÿฎ  ๐Ÿฎก๐Ÿฎฆ๐Ÿฎ  ๐Ÿฎก๐Ÿฎง๐Ÿฎ  ๐Ÿฎซ๐Ÿฎง๐Ÿฎช ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎฉ๐Ÿฎจ๐Ÿฎจ๐Ÿฎจ ๐Ÿฎซ๐Ÿฎซ๐Ÿฎซ๐Ÿฎช๐Ÿฎช๐Ÿฎช ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ๐Ÿฎฎ + +โ—คโ—คโ—คโ—ฅโ—ฅโ—ฅ ๐Ÿฎœ๐Ÿฎœ๐Ÿฎœ๐Ÿฎ๐Ÿฎ๐Ÿฎ +โ—คโ—คโ—คโ—ฅโ—ฅโ—ฅ ๐Ÿฎœ๐Ÿฎœ๐Ÿฎœ๐Ÿฎ๐Ÿฎ๐Ÿฎ +โ—คโ—คโ—คโ—ฅโ—ฅโ—ฅ ๐Ÿฎœ๐Ÿฎœ๐Ÿฎœ๐Ÿฎ๐Ÿฎ๐Ÿฎ +โ—ฃโ—ฃโ—ฃโ—ขโ—ขโ—ข ๐ŸฎŸ๐ŸฎŸ๐ŸฎŸ๐Ÿฎž๐Ÿฎž๐Ÿฎž +โ—ฃโ—ฃโ—ฃโ—ขโ—ขโ—ข ๐ŸฎŸ๐ŸฎŸ๐ŸฎŸ๐Ÿฎž๐Ÿฎž๐Ÿฎž +โ—ฃโ—ฃโ—ฃโ—ขโ—ขโ—ข ๐ŸฎŸ๐ŸฎŸ๐ŸฎŸ๐Ÿฎž๐Ÿฎž๐Ÿฎž + +References: +VT-102: http://vt100.net/docs/vt102-ug/table5-13.html +Unicode: http://www.unicode.org/charts/PDF/U2500.pdf + http://www.unicode.org/charts/PDF/U2580.pdf + http://www.unicode.org/charts/PDF/U25A0.pdf + http://www.unicode.org/charts/PDF/U1FB00.pdf diff --git a/x.c b/x.c index 447338d..4ef3ac3 100644 --- a/x.c +++ b/x.c @@ -1308,6 +1308,8 @@ xinit(int cols, int rows) xsel.xtarget = XInternAtom(xw.dpy, "UTF8_STRING", 0); if (xsel.xtarget == None) xsel.xtarget = XA_STRING; + + boxdraw_xinit(xw.dpy, xw.cmap, xw.draw, xw.vis); } int @@ -1354,8 +1356,13 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x yp = winy + font->ascent; } - /* Lookup character index with default font. */ - glyphidx = XftCharIndex(xw.dpy, font->match, rune); + if (mode & ATTR_BOXDRAW) { + /* minor shoehorning: boxdraw uses only this ushort */ + glyphidx = boxdrawindex(&glyphs[i]); + } else { + /* Lookup character index with default font. */ + glyphidx = XftCharIndex(xw.dpy, font->match, rune); + } if (glyphidx) { specs[numspecs].font = font->match; specs[numspecs].glyph = glyphidx; @@ -1559,8 +1566,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i r.width = width; XftDrawSetClipRectangles(xw.draw, winx, winy, &r, 1); - /* Render the glyphs. */ - XftDrawGlyphFontSpec(xw.draw, fg, specs, len); + if (base.mode & ATTR_BOXDRAW) { + drawboxes(winx, winy, width / len, win.ch, fg, bg, specs, len); + } else { + /* Render the glyphs. */ + XftDrawGlyphFontSpec(xw.draw, fg, specs, len); + } /* Render underline and strikethrough. */ if (base.mode & ATTR_UNDERLINE) { @@ -1603,7 +1614,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og) /* * Select the right color for the right mode. */ - g.mode &= ATTR_BOLD|ATTR_ITALIC|ATTR_UNDERLINE|ATTR_STRUCK|ATTR_WIDE; + g.mode &= ATTR_BOLD|ATTR_ITALIC|ATTR_UNDERLINE|ATTR_STRUCK|ATTR_WIDE|ATTR_BOXDRAW; if (IS_SET(MODE_REVERSE)) { g.mode |= ATTR_REVERSE; diff --git a/x.c.orig b/x.c.orig index ad74068..447338d 100644 --- a/x.c.orig +++ b/x.c.orig @@ -157,6 +157,8 @@ static void xhints(void); static int xloadcolor(int, const char *, Color *); static int xloadfont(Font *, FcPattern *); static void xloadfonts(char *, double); +static int xloadsparefont(FcPattern *, int); +static void xloadsparefonts(void); static void xunloadfont(Font *); static void xunloadfonts(void); static void xsetenv(void); @@ -307,6 +309,7 @@ zoomabs(const Arg *arg) { xunloadfonts(); xloadfonts(usedfont, arg->f); + xloadsparefonts(); cresize(0, 0); redraw(); xhints(); @@ -1021,6 +1024,101 @@ xloadfonts(char *fontstr, double fontsize) FcPatternDestroy(pattern); } +int +xloadsparefont(FcPattern *pattern, int flags) +{ + FcPattern *match; + FcResult result; + + match = FcFontMatch(NULL, pattern, &result); + if (!match) { + return 1; + } + + if (!(frc[frclen].font = XftFontOpenPattern(xw.dpy, match))) { + FcPatternDestroy(match); + return 1; + } + + frc[frclen].flags = flags; + /* Believe U+0000 glyph will present in each default font */ + frc[frclen].unicodep = 0; + frclen++; + + return 0; +} + +void +xloadsparefonts(void) +{ + FcPattern *pattern; + double sizeshift, fontval; + int fc; + char **fp; + + if (frclen != 0) + die("can't embed spare fonts. cache isn't empty"); + + /* Calculate count of spare fonts */ + fc = sizeof(font2) / sizeof(*font2); + if (fc == 0) + return; + + /* Allocate memory for cache entries. */ + if (frccap < 4 * fc) { + frccap += 4 * fc - frccap; + frc = xrealloc(frc, frccap * sizeof(Fontcache)); + } + + for (fp = font2; fp - font2 < fc; ++fp) { + + if (**fp == '-') + pattern = XftXlfdParse(*fp, False, False); + else + pattern = FcNameParse((FcChar8 *)*fp); + + if (!pattern) + die("can't open spare font %s\n", *fp); + + if (defaultfontsize > 0) { + sizeshift = usedfontsize - defaultfontsize; + if (sizeshift != 0 && + FcPatternGetDouble(pattern, FC_PIXEL_SIZE, 0, &fontval) == + FcResultMatch) { + fontval += sizeshift; + FcPatternDel(pattern, FC_PIXEL_SIZE); + FcPatternDel(pattern, FC_SIZE); + FcPatternAddDouble(pattern, FC_PIXEL_SIZE, fontval); + } + } + + FcPatternAddBool(pattern, FC_SCALABLE, 1); + + FcConfigSubstitute(NULL, pattern, FcMatchPattern); + XftDefaultSubstitute(xw.dpy, xw.scr, pattern); + + if (xloadsparefont(pattern, FRC_NORMAL)) + die("can't open spare font %s\n", *fp); + + FcPatternDel(pattern, FC_SLANT); + FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC); + if (xloadsparefont(pattern, FRC_ITALIC)) + die("can't open spare font %s\n", *fp); + + FcPatternDel(pattern, FC_WEIGHT); + FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD); + if (xloadsparefont(pattern, FRC_ITALICBOLD)) + die("can't open spare font %s\n", *fp); + + FcPatternDel(pattern, FC_SLANT); + FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ROMAN); + if (xloadsparefont(pattern, FRC_BOLD)) + die("can't open spare font %s\n", *fp); + + FcPatternDestroy(pattern); + } +} + void xunloadfont(Font *f) { @@ -1118,6 +1216,9 @@ xinit(int cols, int rows) usedfont = (opt_font == NULL)? font : opt_font; xloadfonts(usedfont, 0); + /* spare fonts */ + xloadsparefonts(); + /* colors */ xw.cmap = XDefaultColormap(xw.dpy, xw.scr); xloadcols(); diff --git a/x.o b/x.o index 4cf07d7..8bcdb5e 100644 Binary files a/x.o and b/x.o differ