ApwFreetypeLibrary

Check-in [41da7c263e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fixes.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:41da7c263ebe06fafe6854c66cce5630f652abcd
User & Date: arnulf 2014-12-31 14:38:01
Context
2014-12-31
14:38
initial version. check-in: 7dfcd6bfd2 user: arnulf tags: trunk
14:38
fixes. check-in: 41da7c263e user: arnulf tags: trunk
2014-12-30
23:01
initial version. check-in: 170c896db0 user: arnulf tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ftbase/FTSizeRec.java.

114
115
116
117
118
119
120
121
122
123

124
125
126
127
128
129
130
      if (clazz.init_size != null) {
        size_ref.Set(size);
        error = (int)clazz.init_size.callClassMethod(size_ref);
        size = size_ref.Get();
      }
      /* in case of success, add to the face's list */
      if (error == 0) {
        size_ref.Set(size);
        node.data = size;
        FTListNodeRec.FTListAdd(face.sizes_list, node);

      }
      if (error != 0) {
//        FT_FREE( node );
//        FT_FREE( size );
      }
Debug(0, DBG_INIT, TAG, "FTNewSize END: "+error+"!");
      return error;







<


>







114
115
116
117
118
119
120

121
122
123
124
125
126
127
128
129
130
      if (clazz.init_size != null) {
        size_ref.Set(size);
        error = (int)clazz.init_size.callClassMethod(size_ref);
        size = size_ref.Get();
      }
      /* in case of success, add to the face's list */
      if (error == 0) {

        node.data = size;
        FTListNodeRec.FTListAdd(face.sizes_list, node);
        size_ref.Set(size);
      }
      if (error != 0) {
//        FT_FREE( node );
//        FT_FREE( size );
      }
Debug(0, DBG_INIT, TAG, "FTNewSize END: "+error+"!");
      return error;

Changes to ftdemo/TFont.java.

1
2
3
4
5
6
7
8
9
10
11
12


13
14
15
16
17
18
19
package ftdemo;/* =====================================================================
 *  This Java implementation is derived from FreeType code
 *  Portions of this software are copyright (C) 2014 The FreeType
 *  Project (www.freetype.org).  All rights reserved.
 *
 *  Copyright (C) of the Java implementation 2014
 *  Arnulf Wiedemann arnulf at wiedemann-pri.de
 *
 *  See the file "license.terms" for information on usage and
 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 * =====================================================================
 */



public class TFont extends ftbase.FTDebug {
    private static int oid = 0;

    private int id;
    private static String TAG = "ftdemo.TFont";

|











>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* =====================================================================
 *  This Java implementation is derived from FreeType code
 *  Portions of this software are copyright (C) 2014 The FreeType
 *  Project (www.freetype.org).  All rights reserved.
 *
 *  Copyright (C) of the Java implementation 2014
 *  Arnulf Wiedemann arnulf at wiedemann-pri.de
 *
 *  See the file "license.terms" for information on usage and
 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 * =====================================================================
 */

package ftdemo;

public class TFont extends ftbase.FTDebug {
    private static int oid = 0;

    private int id;
    private static String TAG = "ftdemo.TFont";