dfrg / swash

Font introspection, complex text shaping and glyph rendering.
Apache License 2.0
657 stars 38 forks source link

Use `AtomicUsize` rather than `AtomicU64` in CacheKey. #70

Closed xorgy closed 1 week ago

xorgy commented 1 week ago

AtomicU64 is unavailable on most 32-bit targets, but AtomicUsize is available most targets.

It is exceedingly unlikely that there will be more CacheKeys than bytes in the process address space.

xorgy commented 1 week ago

This patch is a subset of #69 which avoids a breaking change, may be superseded by #69 for our next breaking release.