freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 5ac6276af: [cff, cid, type1] Shorten de-referencing.


From: Werner Lemberg
Subject: [freetype2] master 5ac6276af: [cff, cid, type1] Shorten de-referencing.
Date: Fri, 3 Mar 2023 12:21:21 -0500 (EST)

branch: master
commit 5ac6276af105f81252a461a92ef96ce0f3fd965d
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    [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.
---
 src/cff/cffobjs.c  | 3 +--
 src/cid/cidobjs.c  | 3 +--
 src/type1/t1objs.c | 3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
index 40cd9bf91..edd274e14 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 06b2139a9..1fc121c00 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 1bb2f15f3..4a39da563 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;



reply via email to

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