apodtele

Results 33 comments of apodtele

Thanks. Another idea is to make a copy of `r`, say `s`, instead of of doubling it; then use comparison `r - b + s >= q`; then `r -=...

Never mind that. I am pretty satisfied with this: ``` uint32_t t, q, b, r; r = (uint32_t)v >> 1; q = ( v & 1 ) = t )...

FYI, this is what was adopted in FreeType, which is thoroughly fixed-point, https://gitlab.freedesktop.org/freetype/freetype/-/blob/c4073d82517eff48458e166a6edfb0618b221a4d/src/base/ftcalc.c#L916-L1000 It is used on special occasions only.

If we switch order of WIN32 and UNIX checks, would it work too?

@lemzwerg @madig This seems necessary for CMake to work with mingw. Ok?

Elsewhere we check WIN32 before UNIX to make sure that Windows native calls have priority under MinGW. This is robust, also works with MSVC and does not confuse unixes. Please...

Stroking is very very expensive because the drawing borders are no longer cubic or quadratic Bezier curves. Even approximations are expensive. This is the reason why stroked fonts never gained...

Another issue with strokes (besides non-trivial curve polynomials) is the associated singularities of miter joints with uncertain drawing boundaries. At the very least the boundaries are not trivial to calculate....