freetype2/src/base
Werner Lemberg d7551af098 [truetype] Fix PostScript name handling for variation fonts.
A variation font's PostScript name of a named instance is usually different
from the PostScript name of an unnamed instance.  However, if a change
between a named instance and an unnamed instance with exactly the same
design axis values happened, it was possible that the PostScript name wasn't
correctly updated.

This commit reorganizes the code to handle this issue within the top-level
API functions, using a new service to trigger recomputation of the
PostScript name.

* include/freetype/internal/services/svmm.h (FT_Construct_PS_Name_Func): New
typedef.
(FT_Service_MultiMasters): New field `construct_ps_name`.
(FT_DEFINE_SERVICE_MULTIMASTERSREC): Updated.

* src/base/ftmm.c (FT_Set_Var_Design_Coordinates,
FT_Set_MM_Blend_Coordinates, FT_Set_Var_Blend_Coordinates): Call
`mm->construct_ps_name` to handle `postscript_name`.
(FT_Set_Named_Instance): Call `mm->construct_ps_name` to handle
`postscript_name`.
Use shortcut.
* src/cff/cffdrivr.c (cff_construct_ps_name): New function.
(cff_service_multi_masters): Updated.

* src/truetype/ttgxvar.c (tt_set_mm_blend): Don't handle `postscript_name`.
(TT_Set_MM_Blend): Simplify.
(TT_Set_Named_Instance): Return -1 if axis values haven't changed.
Don't set `face_index`.
(tt_construct_ps_name): New function.

* src/truetype/ttgxvar.h: Updated.

* src/truetype/ttdriver.c (tt_service_gx_multi_masters): Updated.

* src/type1/t1driver.c (t1_service_multi_masters): Updated.

* src/type1/t1load.c (T1_Set_MM_Blend): Simplify.
2023-04-28 10:44:14 +02:00
..
ftadvanc.c Avoid reserved identifiers that are globally defined. 2023-02-08 21:09:30 +01:00
ftbase.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftbase.h Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftbbox.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftbdf.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftbitmap.c Whitespace. 2023-01-28 17:04:11 +01:00
ftcalc.c s/this is,/that is,/ 2023-04-27 06:24:48 +02:00
ftcid.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftcolor.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftdbgmem.c * src/*: Replace leading underscores with trailing ones in dummy variables. 2023-02-26 20:18:54 +01:00
ftdebug.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
fterrors.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftfntfmt.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftfstype.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftgasp.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftgloadr.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftglyph.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftgxval.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
fthash.c * src/base/fthash.c (hash_insert): Avoid unnecessary zeroing. 2022-01-14 18:22:23 +00:00
ftinit.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftlcdfil.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftmac.c * src/*: Replace leading underscores with trailing ones in dummy variables. 2023-02-26 20:18:54 +01:00
ftmm.c [truetype] Fix PostScript name handling for variation fonts. 2023-04-28 10:44:14 +02:00
ftobjs.c Fix 'fall-through' warning messages. 2023-02-08 21:09:32 +01:00
ftotval.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftoutln.c * src/base/ftoutln.c (FT_Outline_Check): Fix C4701 warning. 2023-02-20 22:31:21 -05:00
ftpatent.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftpfr.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftpsprop.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftrfork.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftsnames.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftstream.c Avoid reserved identifiers that are globally defined. 2023-02-08 21:09:30 +01:00
ftstroke.c * src/base/ftstroke.c (FT_Stroker_ParseOutline): Clean up contour indexing. 2023-02-20 17:13:40 +00:00
ftsynth.c * src/base/ftsynth.c (FT_GlyphSlot_AdjustWeight): New API. 2023-03-16 03:28:59 +00:00
ftsystem.c s/this is,/that is,/ 2023-04-27 06:24:48 +02:00
fttrigon.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
fttype1.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftutil.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
ftver.rc * Version 2.13 released. 2023-02-09 07:24:52 +01:00
ftwinfnt.c Update all copyright notices. 2023-01-17 09:18:25 +01:00
md5.c * src/base/md5.c: Updated to recent version. 2016-06-16 06:17:54 +02:00
md5.h * src/base/md5.c, src/base/md5.h: Updated to recent version. 2013-10-22 01:10:10 +02:00
rules.mk Update all copyright notices. 2023-01-17 09:18:25 +01:00