Commit 5ac6276af105f81252a461a92ef96ce0f3fd965d

Alexei Podtelezhnikov 2023-03-03T17:21:10

[cff,cid,type1] Shorten de-referencing. * src/cff/cffobjs.c (cff_clot_init): Use immediate library reference. * src/cid/cidobjs.c (cid_slot_init): Ditto. * src/type1/t1objs.c (T1_GlyphSlot_Init): Ditto.

diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
index 40cd9bf..edd274e 100644
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -381,8 +381,7 @@
       FT_Module  module;
 
 
-      module = FT_Get_Module( slot->face->driver->root.library,
-                              "pshinter" );
+      module = FT_Get_Module( slot->library, "pshinter" );
       if ( module )
       {
         T2_Hints_Funcs  funcs;
diff --git a/src/cid/cidobjs.c b/src/cid/cidobjs.c
index 06b2139..1fc121c 100644
--- a/src/cid/cidobjs.c
+++ b/src/cid/cidobjs.c
@@ -69,8 +69,7 @@
       FT_Module  module;
 
 
-      module = FT_Get_Module( slot->face->driver->root.library,
-                              "pshinter" );
+      module = FT_Get_Module( slot->library, "pshinter" );
       if ( module )
       {
         T1_Hints_Funcs  funcs;
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index 1bb2f15..4a39da5 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -167,8 +167,7 @@
       FT_Module  module;
 
 
-      module = FT_Get_Module( slot->face->driver->root.library,
-                              "pshinter" );
+      module = FT_Get_Module( slot->library, "pshinter" );
       if ( module )
       {
         T1_Hints_Funcs  funcs;