如何保护网络字体? [英] How to protect webfonts?

查看:72
本文介绍了如何保护网络字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户购买了我想在他的网站上使用的字体,但是制作该字体的公司(Adobe)告诉我,该当前字体没有网络字体服务,我可以在网站上使用它仅当我将其光栅化或使其无法以任何其他方式下载/窃取字体时.

my client has bought a font which I would like to use on his website, but the company which made the font(Adobe) told me, that there is no webfont service for this current font and I can use it on a website only if I rasterize it or make it impossible to download/steal the font in any other way.

因此,问题是:

是否有任何可靠的方法来保护Web字体?

(第二个,可选部分)

是否有任何通常被认为足以使该字体在法律上安全使用的方法?

到目前为止我学到的东西:

1)我听说Cufon使用了SVG文件,这些文件(根据w3.org)用于此目的:

1) I heard about Cufon, which uses SVG files, which are(according to w3.org) intended for this purpose:

SVG字体的目的是允许在以下位置传递字形轮廓:仅显示环境.网页随附的SVG字体必须是仅在浏览和查看情况下受支持.图形编辑应用程序或文件翻译工具不得尝试转换SVG字体转换成系统字体.目的是将SVG文件可以在两个内容创建者之间互换,但不能在SVG字体之间互换这些SVG文件可能会附带这些文件.相反,每个内容创建者必须先许可给定的字体,然后才能成功编辑SVG文件.

The purpose of SVG fonts is to allow for delivery of glyph outlines in display-only environments. SVG fonts that accompany Web pages must be supported only in browsing and viewing situations. Graphics editing applications or file translation tools must not attempt to convert SVG fonts into system fonts. The intent is that SVG files be interchangeable between two content creators, but not the SVG fonts that might accompany these SVG files. Instead, each content creator will need to license the given font before being able to successfully edit the SVG file.

但是我也看到了从SVG到普通字体格式的在线转换器(实际上已经尝试过了).

But I also saw few online converters from SVG to normal font formats(havent really tried them).

2)我也看到了这个线程,它说它不是完全可能的,但是它已经使用了两年了,也许技术已经进步了.如何保护Web字体

2) I also saw this thread, which says its not completely possible, but its two years old, maybe the technologies have advanced.: How to protect WebFonts

3)我也相信PDF可以通过某种方式使其无法提取字体,几年前,我看到无法从中提取文本的PDF(即使使用第三者工具也是如此),因为存在故意将字体表弄乱的情况在内部,因此我不得不将整个文档渲染为图像并使用OCR.但是,可能并非如此,因为我试图提取文本而不是字体.

3) I also believe the PDF has some way to make it impossible to extract font, few years ago I saw PDF from which I couldnt extract the text(even with use of 3rd party tools) because there were deliberately messed font tables inside so I had to render the whole document to image and use OCR. However, this might not be the case since I was trying to extract the text and not the font.

4)字体销售公司必须以某种方式保护其字体(?)

4) Font selling companies have to protect their fonts somehow (?)

推荐答案

从根本上讲,如果您打算不使用图像就使用字体(这是一种可怕的做法,如果您谈论的不只是一个字体,请避免使用页面上的几个字符!)您不能阻止人们对字体进行反向工程.例如,像Cufon一样将其作为 SVG 转换为 canvas (或将 SVG 转换为 VML )会迫使用户如果他们想窃取它,可以做一些工作,但是有大量的SVG-> TFF转换器在那里.

Fundamentally, if you're going to use the font without using images (which is a horrible practice and should be avoided if you're talking about more than a few characters on the page!) you cannot stop people from reverse engineering your fonts. For instance, processing them as SVG to canvas (or SVG to VML) as Cufon does will force users to do some work if they want to steal it, but there are plenty of SVG->TFF converters out there.

即使没有转换器,您仍然可以基于SVG定义的向量创建新的字体集.防止这种情况的唯一方法是不提供任何基于矢量的字体系统(即使用位图),但这基本上破坏了网站的可访问性.即使这样,如果您已经编写了一个动态系统来提供基于图像的字体,如果您让用户拥有足够高分辨率的图像位图(即使用大字体服务器),则可以使用脚本将轮廓转换为向量.

Even without a converter you could still create a new font set based on the vectors defined by SVG. The only way to prevent this is to not provide any vector-based font system (i.e. use bitmaps), but that basically destroys the accessibility of your site. And even then, if you've written a dynamic system for serving image-based fonts, if you let the user have a sufficiently high resolution bitmap of the image (i.e. server a large font), there are scripts available that will convert outlines to vectors.

字体销售公司(至少我见过的公司)都只提供基于图像的字体预览,并限制可以演示的最大字体大小.

Font-selling companies (at least the ones I've seen) all serve only image-based versions of their fonts for previews, and cap the maximum size of the font that you can demo.

这篇关于如何保护网络字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆