mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-27 03:06:57 -06:00
Fonts: a folder search skips suitcase fonts whose resource fork is over 8 MB
A folder search reads at most 8 MB of each font file. The suitcase reader reads a suitcase font's resource fork whole, up to 256 MB. Before this change, the search applied its limit to each font only after that read. One search thread could read 256 MB from a single suitcase and hold a copy of its fonts as well. The search now reads a suitcase font only when its resource fork is 8 MB or less. The font scan still reads each suitcase font's resource fork whole, up to 256 MB. Docs: docs/mcp.md.
This commit is contained in:
+1
-1
@@ -2597,7 +2597,7 @@ and the `name`, `fvar` and `OS/2` tables of `.ttf`, `.otf`, `.ttc` and `.otc` fi
|
||||
the file makes the font resolve exactly as `text.fonts` resolves it. It ends after `maxSeconds` (60 by default, 1 to
|
||||
600), at its limits on the entries listed (10,000,000), the folders waiting to be listed (1,000,000), the font files
|
||||
read (10,000) and the files kept (1,000), or once every font has a file. Folders more than 64 levels below the picked
|
||||
one are skipped and counted in `skipped`.
|
||||
one are skipped and counted in `skipped`. A search does not read a suitcase font whose resource fork is larger than 8 MB.
|
||||
|
||||
A search does not enter app and media library packages (`.app`, `.bundle`, `.framework`, `.photoslibrary` and the like),
|
||||
folders named `Program Files` (also `Program Files (x86)` and `Program Files (Arm)`), `ProgramData`, `$Recycle.Bin` or
|
||||
|
||||
Reference in New Issue
Block a user