Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/font.c
| Show First 20 Lines • Show All 391 Lines • ▼ Show 20 Lines | static void build_underline(Curve *cu, | ||||
| bp = (BPoint *)MEM_calloc_arrayN(4, sizeof(BPoint), "underline_bp"); | bp = (BPoint *)MEM_calloc_arrayN(4, sizeof(BPoint), "underline_bp"); | ||||
| copy_v4_fl4(bp[0].vec, rect->xmin, (rect->ymax + yofs), 0.0f, 1.0f); | copy_v4_fl4(bp[0].vec, rect->xmin, (rect->ymax + yofs), 0.0f, 1.0f); | ||||
| copy_v4_fl4(bp[1].vec, rect->xmax, (rect->ymax + yofs), 0.0f, 1.0f); | copy_v4_fl4(bp[1].vec, rect->xmax, (rect->ymax + yofs), 0.0f, 1.0f); | ||||
| copy_v4_fl4(bp[2].vec, rect->xmax, (rect->ymin + yofs), 0.0f, 1.0f); | copy_v4_fl4(bp[2].vec, rect->xmax, (rect->ymin + yofs), 0.0f, 1.0f); | ||||
| copy_v4_fl4(bp[3].vec, rect->xmin, (rect->ymin + yofs), 0.0f, 1.0f); | copy_v4_fl4(bp[3].vec, rect->xmin, (rect->ymin + yofs), 0.0f, 1.0f); | ||||
| /* Used by extrude (See T70418) */ | |||||
| bp[0].radius = bp[1].radius = bp[2].radius = bp[3].radius = 1.0f; | |||||
| nu2->bp = bp; | nu2->bp = bp; | ||||
| BLI_addtail(nubase, nu2); | BLI_addtail(nubase, nu2); | ||||
| if (rot != 0.0f) { | if (rot != 0.0f) { | ||||
| float si, co; | float si, co; | ||||
| int i; | int i; | ||||
| si = sinf(rot); | si = sinf(rot); | ||||
| ▲ Show 20 Lines • Show All 1,308 Lines • Show Last 20 Lines | |||||