freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How postscript name work


From: Werner LEMBERG
Subject: Re: How postscript name work
Date: Mon, 06 Jun 2022 05:17:17 +0000 (UTC)

> My problem is that I don't understand:
> https://github.com/freetype/freetype/blob/c26f0d0d7e1b24863193ab2808f67798456dfc9c/src/sfnt/sfdriver.c#L1054-L1062
> 
> In particular, what is
> 
>    - TT_CONFIG_OPTION_GX_VAR_SUPPORT:
>    
> https://github.com/freetype/freetype/blob/c26f0d0d7e1b24863193ab2808f67798456dfc9c/devel/ftoption.h#L737
>    - FT_IS_NAMED_INSTANCE:
>    
> https://github.com/freetype/freetype/blob/c26f0d0d7e1b24863193ab2808f67798456dfc9c/include/freetype/freetype.h#L1443-L1444
>    - FT_IS_VARIATION:
>    
> https://github.com/freetype/freetype/blob/c26f0d0d7e1b24863193ab2808f67798456dfc9c/include/freetype/freetype.h#L1461-L1462

What about looking up the documentation?  Configuration options are
described directly in the header file `ftoption.h`:

  
https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/include/freetype/config/ftoption.h

The other macros are documented in the API reference:

  
https://freetype.org/freetype2/docs/reference/ft2-base_interface.html#ft_is_named_instance
  
https://freetype.org/freetype2/docs/reference/ft2-base_interface.html#ft_is_variation

The rules how to construct a PostScript name for an instance of a
variation font are part of the OpenType specification

  https://docs.microsoft.com/en-us/typography/opentype/spec/name
  https://docs.microsoft.com/en-us/typography/opentype/spec/fvar

with more details in Adobe Technical Note #5902

  
https://adobe-type-tools.github.io/font-tech-notes/pdfs/5902.AdobePSNameGeneration.pdf


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]