How can i block ttf to web use only(not using fontSquirrl) - font-face

I have a font(.ttf) that i want to make sure that no one will be able to download it and install it in his/her computer. i know there is an option to upload the font to fontSquirll and check under the advance mode the following Protection: WebOnly™ .
but since they share the fonts that were being converted to fontface i do not wish to use it.
Is there any program that can do that same locally?

A WOFF font does exactly that: protect your font from being installed locally. Apart from some older Android browsers, WOFF support is virtually the same as TTF, and there are plenty of easy tools out there to convert your TTF to WOFF.

Related

Roboto font difference between macOS 14 and RHEL7

I'm working on a visual regression system which takes component screenshot locally with headless chrome and during build inside a CI and compares both afterwards.
Nevertheless I've run in to a problem, where the font is rendered differently on my machine (macOS) and the CI (RHEL7).
I'm using google's Roboto font, which I've downloaded and created a CustomRoboto font-face to mitigate issues with locally installed Roboto.
This is the screenshot produced by my machine:
This is produced by the CI:
This is the diff:
If you look closely the letters are tiny bit "higher" than on my machine.
I would like to keep the "truth" screenshot creation local than on a CI. But my best guess is to do it on the CI.
macOS uses different font-rendering code than Linux, and both of them are not exactly ideal. On RHEL, the FreeType library is used, and its settings can be variously tweaked to achieve different results (even for individual fonts and font sizes). Theoretically, it should be possible to configure it to resemble the way macOS treats font rendering.
See The sad state of font rendering on Linux for some background and How to achieve MacOS font rendering in Linux for one of the attempts. Note though that the font itself also influences the way different rendering engines display it, so what works with one font may not work with another.

Printer driver generate UFM or GTT file

Can anyone shed some light on how one would generate a UFM or GTT file? Do I convert an existing font file, perhaps a TTF to this format? I've read this and understand that they are just binary files containing structs. I don't really think I should be handcrafting these though... so is there a tool?
I've built the text-only driver sample (WinDDK) which comes with some GTT and UFM files but obviously I need to define my own font metrics. Some of my fonts are of a different cpi that the UFMs provided so I don't really know how to proceed.
Edit:
My problem and not the attempted solution: I am trying to build a unidrv minidriver printer driver and I'll need to support custom fonts. If GTT/UFM is not the best route please let me know. I'd love to avoid the v3 model entirely but I have requirement to support XP SP3 through Windows 8.1. Windows 10 will be another story.

How to batch create icon webfonts in windows from SVG files

In the past I've used tools such as Font Custom and IcoMoon to create webfonts for use in various web applications used much like one would used Font Awesome.
However there does not seem to be a solution that runs natively under windows. With Font Custom relying on libraries not available on windows, and IcoMoon not providing a batch / local way of doing things.
Is there a good way to do this on Windows, or does a solution not yet exist?
Bonus points if it can be done via Grunt or a Visual Studio build step.
There’s grunt-webfont (you need to use the node engine on Windows).

Fonts have changed in Dia on Windows, my diagrams are broken

Suddenly the fonts in all my diagrams have fonts, ruining the layout of some of them. I tried deleting Dia's configuration, but it didn't help.
The only thing I can think of that might have caused it is installing LibreOffice yesterday. How does Dia decide which fonts to use and where does it get them from? I haven't changed any font settings in Dia, and my diagrams all use default fonts.
I'm using Dia 0.97.2.
Dia uses the standard fonts that the operating system provides.
Did you check your diagrams on a second system?
Have you tried to uninstall the software that triggered your problem?
Could you give an example of a font that you're using?

Postscript Type 1 fonts handling/rendering using Freetype2/Qt4 on Mac OS X

I'm working on an Font Identification tool which runs natively on both Windows XP/7/Vista and Mac OS X and needs to perform high-speed quality rendering of Outline fonts.
As we needed high performance & multi-platform developing environment, we choose a Qt4 / C++ combination and we use freetype2 for font rendering.
By the way, I'm really impressed from the stability, performance & code quality of the freetype2 library and I highly recommend it!
When we switched from Qt4 internal font rendering to freetype2, the product performance increased by about 300% while the probability of an app-crash due to a bad font is lowered from 1:10.000 to 1:200.000.
Our product currently supports OpenType (OTF) and TrueType (TTF) fonts and we are about to add support for Postscript Type 1 (PS1) fonts.
In fact we have already added support for Windows Type-1 fonts but I have a real trouble to find the required information to handle Mac OS Type-1 fonts.
You can see some platform-depended differences of Type-1 fonts here:
http://www.asy.com/fonts.htm
On Windows, each Type-1 font is contained in 2 files: font-name.pfb (the font outlines) and font-name.pfm (the font metrics, kerning, etc)
To open a Type-1 font + metrics with freetype2 you can just do the following:
ftError = FT_New_Face(&ftLibrary, "font-name.pfb", ftFaceIndex, &ftFace);
if (ftError)
(...)
ftError = FT_Attach_File(ftFace, "font-name.pfm");
if (ftError)
(...)
I have the following issues/questions regarding Mac OS X:
1) Is there a corresponding *.pfm (metrics) file? and if the answer is yes, does it always exist on any given Mac-Type-1 font?
EDIT/Answer: There is no *.pfm file in Mac Type-1 fonts. The font-metrics are stored inside a bitmap font stored in the same Font-Suitcase. See the following link about transferring fonts between Windows & Mac, explaining many of the differences between Win-Type-1 and Mac-Type-1 fonts: http://www.macdisk.com/fontsen.php3
2) Is there a corresponding *.pfb (outlines) file?
My info so far is that an outlines file exists and it has no extension (pfb) but a "Mac type" of LWFN. How I can read the "LWFN" type associated with a file while scanning for all such Type-1 files on a given directory?
In general: How to handle Mac data/resource files and File-Types using Qt & C++ ?
3) Are those files (1),(2) exist always in the same directory?
EDIT/Answer: This question is no longer meaningful, after asnwer(1) [=there is no *.pfm file in Mac-Type-1 fonts].
4) If I know the filepaths of (1),(2) for a specific font, is it possible to install the font by just copying the files into User's font library folder (which is true for OTF/TTF fonts) or I have to use some other special installation method?
EDIT/Answer: The Mac-Type-1 fonts comes inside a Font-Suitcase. The correct installation method is to install the whole Suitcase to User's font library.
5) Is it possible to take a Windows-Type-1 font (pfb/pfm) and install/use it on a Mac OS X machine, without any conversion?
EDIT/Answer: The answer is NO. The pfb/pfm need conversion to be installed/used in Mac OS X but you can use them by Adobe applications like Photoshop/Indesign if you copy them to some special fonts folder of these Apps.
I will really appreciate any answers or links pointing to the right direction, because any search I have done so far, just points to another level of complexity without getting me any definite or useful answers.
Thanks
Fivos
PS: I tried to answer most of my questions, and I will also post a link to some pieces of code I have found.
I answered most of my questions by editing my original post. For future readers: I have found some piece of open-source C code which addresses the problem of handling Mac Font Suitcases and extracting OTF/TTF/Type-1 fonts from them.
It's a set of tools written by George Williams (see the description bellow).
The link to open-source project: http://fondu.sourceforge.net/#Fondu
Fondu -- A set of programs to interconvert between mac font formats and pfb, ttf, otf and bdf files on unix.
Dealing with mac fonts is hard on other operating systems because mac fonts are stored in the resource fork, and other operating systems do not support this concept. Fondu will extract the resource fork from either a macbinary file or a binhex file. Ufond will create a resource fork inside a macbinary file.

Resources