D
Deno

help

font regenerator for copying restriction purposes on Deno

FFarad法拉3/26/2024
I am developing a web reader PWA primarily for reading CJK character text. If I do not want users to bypass user select: none or other forms of copying restrictions in an F12 manner, is it an effective solution to randomly map all commonly used Unicode glyphs and CJK characters to E000-F8FF and F0000-10FFFF Private Use Area? I don't think the mapping generator should be a big problem, most of the information I need is provided on the Wikipedia and Unicode official websites. But how can I create a Deno based font remapper on the server? I have searched a lot on this, but found nothing.
DAHDeno AI Helper3/26/2024
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided in your message, I can offer some general advice. Remapping Unicode glyphs to the Private Use Areas (PUA) as a means to prevent copying might technically work, but it's a complex solution that could have unintended consequences, such as accessibility issues and incompatibility with screen readers. Additionally, it might not be a foolproof method to prevent copying, as determined users may find ways to bypass such measures. Regarding the implementation of a font remapper in Deno, since there is no specific guidance in the Deno documentation, you would likely need to handle the font file parsing and glyph remapping manually. This would involve understanding the structure of font files (e.g., TrueType, OpenType) and being able to modify them to map the characters to different Unicode points. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice. You might need to look into third-party libraries that can handle font parsing and manipulation, or consider other methods to protect your content. Remember that any form of DRM or content protection can often be circumvented and might not provide the level of security you are hoping for.
FFarad法拉3/26/2024
Emm, accessibility does can become a major issue

Looking for more? Join the community!