简体   繁体   English

在文本/字体预览器上隐藏字体名称

[英]Hiding font names on a text/font previewer

I am coding an online store where customers will be able to customise products any text choosing from a few hand picked fonts. 我正在为一家在线商店编码,客户可以在其中从一些手工挑选的字体中选择任何文本来定制产品。 I want to use a text/font preview box like on the website below: 我想在下面的网站上使用文本/字体预览框:

https://www.myfonts.com/fonts/cbx-jukebox/corner-store-jf/ https://www.myfonts.com/fonts/cbx-jukebox/corner-store-jf/

Creating a font preview 创建字体预览

My question is, if I create a text/font previewer for my website is it possible to mask the true name of the font I am using or would someone still be able to find that out by looking into the code somehow or with an addon like what font? 我的问题是,如果我为我的网站创建一个文本/字体预览器,是否可以掩盖我正在使用的字体的真实名称,或者有人仍然可以通过某种方式或使用类似插件的代码来查找字体什么字体?

I thought that I could give the font files themselves different names but wasn't sure if that would work? 我以为我可以给字体文件起个不同的名字,但不确定是否行得通?

I looked into using cufon however my understanding is that someone could download the font file from the js. 我研究了使用cufon,但是我的理解是有人可以从js下载字体文件。

The reason is because I have gone to a lot of time to select unique stylish fonts and I don't want to make it easy for my competitors to copy my designs by being able to easily find out what font it is 原因是因为我花了很多时间来选择独特的时尚字体,并且我不想让竞争对手轻易复制能够轻松发现其字体的设计,

You cannot with a client side code (CSS, JS). 您不能使用客户端代码 (CSS,JS)。 How it does hide it when the possibility is always there. 当可能性始终存在时,它如何隐藏它。 Maybe it can be done with the server-side code like PHP GD. 也许可以使用服务器端代码(例如PHP GD)来完成。 However, it will be very tiring work. 但是,这将是非常累人的工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM