Added possibility to set additional directories to search fonts - #1422
Conversation
…es to search fonts useful for strict enviroments without preinstalled fonts / access realted to BobLd/PdfPig.Rendering.Skia#145
|
@adelobosko thanks a lot for the PR, I think this is going to help many users. I have added comments - let me know if any questions The feedback in |
|
@adelobosko I did a 2nd pass on the code, have you successfully added other fonts in your use case?
We should aim at throw an exception if a path is added too late. |
|
@BobLd Yes, I was able to successfully add other fonts in my use case. |
|
@adelobosko thanks for updating the PR. Regarding my last comment, your Can you review your changes? As a side note: I agree with the approach being static (even if not a huge fan, but I don't think there's an alternative), it just need to be robust. |
|
|
@adelobosko agreed on the hashset, yes. My comment above was related to the use of Will merge as-is and push changes for the lock, and hashset. |
…ck instead of ConcurrentBag after set it as private
…al-font-search-dirs
…dirs' into feat/set-additional-font-search-dirs
|
@BobLd done, changed to HashSet + locks |
|
@adelobosko thx for the updates. Can you let me know when you are done? I'll run the tests and merge |
|
@BobLd It's done |
• fixed typo in WindowsSystemFontLister (PSFonts dir was not included, fonts dir was used twice instead)
• added possibility to set additional directories to search fonts
useful for strict environments without preinstalled fonts or without access to them
related to BobLd/PdfPig.Rendering.Skia#145