w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

noprefs.c File Reference
#include "pfaedit.h"
#include "plugins.h"
#include <charset.h>
#include <gfile.h>
#include <ustring.h>
#include <sys/types.h>
#include <dirent.h>
#include <locale.h>
#include <time.h>
#include <sys/time.h>
#include <stdlib.h>
#include "ttf.h"
Include dependency graph for noprefs.c:

Go to the source code of this file.

Classes

struct  prefs_list
 

Enumerations

enum  pref_types {
  pr_int , pr_real , pr_bool , pr_enum ,
  pr_encoding , pr_string , pr_file , pr_namelist ,
  pr_unicode , pr_int , pr_real , pr_bool ,
  pr_enum , pr_encoding , pr_string , pr_file ,
  pr_namelist , pr_unicode
}
 

Functions

static int NOUI_GetPrefs (char *name, Val *val)
 
static int NOUI_SetPrefs (char *name, Val *val1, Val *val2)
 
static char * NOUI_getFontForgeShareDir (void)
 
static void DefaultXUID (void)
 
static void NOUI_SetDefaults (void)
 
static void NOUI_LoadPrefs (void)
 
static void NOUI_SavePrefs (int not_if_script)
 
void FF_SetPrefsInterface (struct prefs_interface *prefsi)
 

Variables

static char * othersubrsfile = ((void *)0)
 
int adjustwidth
 
int adjustlbearing
 
Encodingdefault_encoding
 
int autohint_before_rasterize
 
int autohint_before_generate
 
int accent_offset
 
int GraveAcuteCenterBottom
 
int PreferSpacingAccents
 
int CharCenterHighest
 
int recognizePUA
 
int snaptoint
 
float joinsnap
 
char * BDFFoundry
 
char * TTFFoundry
 
char * xuid
 
char * SaveTablesPref
 
int maxundoes
 
int prefer_cjk_encodings
 
int onlycopydisplayed
 
int copymetadata
 
int copyttfinstr
 
int oldformatstate
 
int oldbitmapstate
 
int old_ttf_flags
 
int old_ps_flags
 
int old_otf_flags
 
int preferpotrace
 
int autotrace_ask
 
int mf_ask
 
int mf_clearbackgrounds
 
int mf_showerrors
 
char * mf_args
 
int coverageformatsallowed
 
int hint_diagonal_ends
 
int hint_diagonal_intersections
 
int hint_bounding_boxes
 
int detect_diagonal_stems
 
int new_em_size
 
int new_fonts_are_order2
 
int loaded_fonts_same_as_new
 
int use_second_indic_scripts
 
int allow_utf8_glyphnames
 
int ask_user_for_cmap = 0
 
NameListforce_names_when_opening
 
NameListforce_names_when_saving
 
NameListnamelist_for_new_fonts
 
int default_fv_row_count
 
int default_fv_col_count
 
int use_freetype_to_rasterize_fv
 
static char * xdefs_filename
 
static char * helpdir = ((void *)0)
 
static int splash =1
 
static int cv_auto_goto =1
 
static int OpenCharsInNewWindow =1
 
static float arrowAmount =1
 
static float arrowAccelFactor =10
 
static float snapdistance =3.5
 
static int stop_at_join =0
 
static int updateflex =0
 
static int ask_user_for_resolution =1
 
static int default_fv_showhmetrics =0
 
static int default_fv_showvmetrics =0
 
static int default_fv_glyphlabel =0
 
static int save_to_dir =0
 
static int palettes_docked =1
 
static int cvvisible [2] ={1,1}
 
static int bvvisible [3] ={1,1,1}
 
static int infowindowdistance =10
 
static int loacal_markextrema
 
static int loacal_markpoi
 
static int loacal_showrulers
 
static int loacal_showcpinfo
 
static int loacal_showsidebearings
 
static int loacal_showpoints
 
static int loacal_showfilled
 
static int loacal_showtabs
 
static int loacal_showrefnames
 
static int oldsystem =100
 
static char * oflib_username
 
static char * oflib_password
 
static int rectelipse =0
 
static int polystar =0
 
static int regular_star =0
 
static int center_out [2] ={0,0}
 
static float rr_radius =0
 
static int ps_pointcnt =5
 
static float star_percent =100
 
static int debug_wins =0
 
static int gridfit_dpi =100
 
static int gridfit_depth =1
 
static float gridfit_pointsizex =12
 
static float gridfit_pointsizey =12
 
static int gridfit_x_sameas_y = 1
 
static int default_font_filter_index =0
 
static int ItalicConstrained = 1
 
int clear_tt_instructions_when_needed
 
static int default_cv_width
 
static int default_cv_height
 
static int mv_width
 
static int mv_height
 
static int bv_width
 
static int bv_height
 
static int mvshowgrid
 
static int old_validate = 1
 
static int old_fontlog = 0
 
static int home_char = 'A'
 
static int compact_font_on_open =0
 
static int oflib_automagic_preview
 
static int aa_pixelsize
 
static int gfc_showhidden
 
static int gfc_dirplace
 
static char * gfc_bookmarks = ((void *)0)
 
static char * pixmapdir = ((void *)0)
 
int unused = 0
 
char * unused_string = ((void *)0)
 
static struct prefs_list core_list []
 
static struct prefs_list extras []
 
static struct prefs_listprefs_list [] = { core_list, extras, ((void *)0) }
 
static struct prefs_interface prefsnoui
 
struct prefs_interfaceprefs_interface = &prefsnoui
 

Enumeration Type Documentation

◆ pref_types

enum pref_types
Enumerator
pr_int 
pr_real 
pr_bool 
pr_enum 
pr_encoding 
pr_string 
pr_file 
pr_namelist 
pr_unicode 
pr_int 
pr_real 
pr_bool 
pr_enum 
pr_encoding 
pr_string 
pr_file 
pr_namelist 
pr_unicode 

Definition at line 159 of file noprefs.c.

Function Documentation

◆ DefaultXUID()

static void DefaultXUID ( void  )
static

Definition at line 413 of file noprefs.c.

References copy(), free, NULL, r1, r2, rand, sprintf, srand, time(), and xuid.

Referenced by NOUI_SetDefaults().

◆ FF_SetPrefsInterface()

void FF_SetPrefsInterface ( struct prefs_interface prefsi)

Definition at line 465 of file noprefs.c.

◆ NOUI_getFontForgeShareDir()

static char* NOUI_getFontForgeShareDir ( void  )
static

Definition at line 403 of file noprefs.c.

References NULL.

◆ NOUI_GetPrefs()

static int NOUI_GetPrefs ( char *  name,
Val val 
)
static

◆ NOUI_LoadPrefs()

static void NOUI_LoadPrefs ( void  )
static

Definition at line 447 of file noprefs.c.

◆ NOUI_SavePrefs()

static void NOUI_SavePrefs ( int  not_if_script)
static

Definition at line 450 of file noprefs.c.

References void.

◆ NOUI_SetDefaults()

static void NOUI_SetDefaults ( void  )
static

Definition at line 443 of file noprefs.c.

References DefaultXUID().

◆ NOUI_SetPrefs()

Variable Documentation

◆ aa_pixelsize

int aa_pixelsize
static

Definition at line 153 of file noprefs.c.

◆ accent_offset

int accent_offset
extern

Definition at line 33 of file fvcomposit.c.

◆ adjustlbearing

int adjustlbearing
extern

Definition at line 38 of file splinechar.c.

◆ adjustwidth

int adjustwidth
extern

Definition at line 36 of file splinechar.c.

◆ allow_utf8_glyphnames

int allow_utf8_glyphnames
extern

Definition at line 39 of file splinechar.c.

◆ arrowAccelFactor

float arrowAccelFactor =10
static

Definition at line 110 of file noprefs.c.

◆ arrowAmount

float arrowAmount =1
static

Definition at line 109 of file noprefs.c.

◆ ask_user_for_cmap

int ask_user_for_cmap = 0
extern

Definition at line 49 of file parsettf.c.

◆ ask_user_for_resolution

int ask_user_for_resolution =1
static

Definition at line 114 of file noprefs.c.

◆ autohint_before_generate

int autohint_before_generate
extern

Definition at line 32 of file splinesave.c.

◆ autohint_before_rasterize

int autohint_before_rasterize
extern

◆ autotrace_ask

int autotrace_ask
extern

Definition at line 288 of file ffdummies.c.

◆ BDFFoundry

char* BDFFoundry
extern

◆ bv_height

int bv_height
static

Definition at line 146 of file noprefs.c.

◆ bv_width

int bv_width
static

Definition at line 145 of file noprefs.c.

◆ bvvisible

int bvvisible[3] ={1,1,1}
static

Definition at line 120 of file noprefs.c.

◆ center_out

int center_out[2] ={0,0}
static

Definition at line 129 of file noprefs.c.

◆ CharCenterHighest

int CharCenterHighest
extern

Definition at line 36 of file fvcomposit.c.

◆ clear_tt_instructions_when_needed

int clear_tt_instructions_when_needed
extern

Definition at line 40 of file splinechar.c.

◆ compact_font_on_open

int compact_font_on_open =0
static

Definition at line 151 of file noprefs.c.

◆ copymetadata

int copymetadata

Definition at line 72 of file noprefs.c.

◆ copyttfinstr

int copyttfinstr

Definition at line 72 of file noprefs.c.

◆ core_list

struct prefs_list core_list[]
static

◆ coverageformatsallowed

int coverageformatsallowed
extern

Definition at line 30 of file tottfgpos.c.

◆ cv_auto_goto

int cv_auto_goto =1
static

Definition at line 107 of file noprefs.c.

◆ cvvisible

int cvvisible[2] ={1,1}
static

Definition at line 120 of file noprefs.c.

◆ debug_wins

int debug_wins =0
static

Definition at line 133 of file noprefs.c.

◆ default_cv_height

int default_cv_height
static

Definition at line 142 of file noprefs.c.

◆ default_cv_width

int default_cv_width
static

Definition at line 141 of file noprefs.c.

◆ default_encoding

Encoding* default_encoding
extern

Definition at line 40 of file encoding.c.

Referenced by NOUI_SetPrefs().

◆ default_font_filter_index

int default_font_filter_index =0
static

Definition at line 138 of file noprefs.c.

◆ default_fv_col_count

int default_fv_col_count
extern

Definition at line 36 of file splineutil2.c.

◆ default_fv_glyphlabel

int default_fv_glyphlabel =0
static

Definition at line 117 of file noprefs.c.

◆ default_fv_row_count

int default_fv_row_count
extern

Definition at line 35 of file splineutil2.c.

◆ default_fv_showhmetrics

int default_fv_showhmetrics =0
static

Definition at line 115 of file noprefs.c.

◆ default_fv_showvmetrics

int default_fv_showvmetrics =0
static

Definition at line 116 of file noprefs.c.

◆ detect_diagonal_stems

int detect_diagonal_stems
extern

Definition at line 42 of file stemdb.c.

◆ extras

struct prefs_list extras[]
static

◆ force_names_when_opening

NameList* force_names_when_opening
extern

Definition at line 33 of file namelist.c.

◆ force_names_when_saving

NameList* force_names_when_saving
extern

Definition at line 34 of file namelist.c.

◆ gfc_bookmarks

char* gfc_bookmarks = ((void *)0)
static

Definition at line 156 of file noprefs.c.

◆ gfc_dirplace

int gfc_dirplace
static

Definition at line 155 of file noprefs.c.

◆ gfc_showhidden

int gfc_showhidden
static

Definition at line 155 of file noprefs.c.

◆ GraveAcuteCenterBottom

int GraveAcuteCenterBottom
extern

Definition at line 34 of file fvcomposit.c.

◆ gridfit_depth

int gridfit_depth =1
static

Definition at line 134 of file noprefs.c.

◆ gridfit_dpi

int gridfit_dpi =100
static

Definition at line 134 of file noprefs.c.

◆ gridfit_pointsizex

float gridfit_pointsizex =12
static

Definition at line 135 of file noprefs.c.

◆ gridfit_pointsizey

float gridfit_pointsizey =12
static

Definition at line 136 of file noprefs.c.

◆ gridfit_x_sameas_y

int gridfit_x_sameas_y = 1
static

Definition at line 137 of file noprefs.c.

◆ helpdir

char* helpdir = ((void *)0)
static

Definition at line 105 of file noprefs.c.

◆ hint_bounding_boxes

int hint_bounding_boxes
extern

Definition at line 41 of file stemdb.c.

◆ hint_diagonal_ends

int hint_diagonal_ends
extern

Definition at line 39 of file stemdb.c.

◆ hint_diagonal_intersections

int hint_diagonal_intersections
extern

Definition at line 40 of file stemdb.c.

◆ home_char

int home_char = 'A'
static

Definition at line 150 of file noprefs.c.

◆ infowindowdistance

int infowindowdistance =10
static

Definition at line 121 of file noprefs.c.

◆ ItalicConstrained

int ItalicConstrained = 1
static

Definition at line 139 of file noprefs.c.

◆ joinsnap

float joinsnap
extern

Definition at line 40 of file fontviewbase.c.

◆ loacal_markextrema

int loacal_markextrema
static

Definition at line 122 of file noprefs.c.

◆ loacal_markpoi

int loacal_markpoi
static

Definition at line 122 of file noprefs.c.

◆ loacal_showcpinfo

int loacal_showcpinfo
static

Definition at line 123 of file noprefs.c.

◆ loacal_showfilled

int loacal_showfilled
static

Definition at line 124 of file noprefs.c.

◆ loacal_showpoints

int loacal_showpoints
static

Definition at line 123 of file noprefs.c.

◆ loacal_showrefnames

int loacal_showrefnames
static

Definition at line 124 of file noprefs.c.

◆ loacal_showrulers

int loacal_showrulers
static

Definition at line 122 of file noprefs.c.

◆ loacal_showsidebearings

int loacal_showsidebearings
static

Definition at line 123 of file noprefs.c.

◆ loacal_showtabs

int loacal_showtabs
static

Definition at line 124 of file noprefs.c.

◆ loaded_fonts_same_as_new

int loaded_fonts_same_as_new
extern

Definition at line 34 of file splineutil2.c.

◆ maxundoes

int maxundoes
extern

Definition at line 41 of file cvundoes.c.

◆ mf_args

char* mf_args
extern

Definition at line 289 of file ffdummies.c.

◆ mf_ask

int mf_ask
extern

Definition at line 288 of file ffdummies.c.

◆ mf_clearbackgrounds

int mf_clearbackgrounds
extern

Definition at line 288 of file ffdummies.c.

◆ mf_showerrors

int mf_showerrors
extern

Definition at line 288 of file ffdummies.c.

◆ mv_height

int mv_height
static

Definition at line 144 of file noprefs.c.

◆ mv_width

int mv_width
static

Definition at line 143 of file noprefs.c.

◆ mvshowgrid

int mvshowgrid
static

Definition at line 147 of file noprefs.c.

◆ namelist_for_new_fonts

NameList* namelist_for_new_fonts
extern

Definition at line 45 of file namelist.c.

Referenced by NOUI_SetPrefs().

◆ new_em_size

int new_em_size
extern

Definition at line 32 of file splineutil2.c.

◆ new_fonts_are_order2

int new_fonts_are_order2
extern

Definition at line 33 of file splineutil2.c.

◆ oflib_automagic_preview

int oflib_automagic_preview
static

Definition at line 152 of file noprefs.c.

◆ oflib_password

char* oflib_password
static

Definition at line 127 of file noprefs.c.

◆ oflib_username

char* oflib_username
static

Definition at line 126 of file noprefs.c.

◆ old_fontlog

int old_fontlog = 0
static

Definition at line 149 of file noprefs.c.

◆ old_otf_flags

int old_otf_flags
extern

◆ old_ps_flags

int old_ps_flags
extern

◆ old_ttf_flags

int old_ttf_flags
extern

◆ old_validate

int old_validate = 1
static

Definition at line 148 of file noprefs.c.

◆ oldbitmapstate

int oldbitmapstate
extern

◆ oldformatstate

int oldformatstate
extern

◆ oldsystem

int oldsystem =100
static

Definition at line 125 of file noprefs.c.

◆ onlycopydisplayed

int onlycopydisplayed
extern

Definition at line 35 of file cvundoes.c.

◆ OpenCharsInNewWindow

int OpenCharsInNewWindow =1
static

Definition at line 108 of file noprefs.c.

◆ othersubrsfile

char* othersubrsfile = ((void *)0)
static

Definition at line 52 of file noprefs.c.

◆ palettes_docked

int palettes_docked =1
static

Definition at line 119 of file noprefs.c.

◆ pixmapdir

char* pixmapdir = ((void *)0)
static

Definition at line 157 of file noprefs.c.

◆ polystar

int polystar =0
static

Definition at line 128 of file noprefs.c.

◆ prefer_cjk_encodings

int prefer_cjk_encodings
extern

Definition at line 65 of file parsettf.c.

◆ preferpotrace

int preferpotrace
extern

Definition at line 290 of file ffdummies.c.

◆ PreferSpacingAccents

int PreferSpacingAccents
extern

Definition at line 35 of file fvcomposit.c.

◆ prefs_interface

Definition at line 463 of file noprefs.c.

◆ prefs_list

struct prefs_list * prefs_list[] = { core_list, extras, ((void *)0) }
static

◆ prefsnoui

struct prefs_interface prefsnoui
static
Initial value:
= {
}
static int NOUI_SetPrefs(char *name, Val *val1, Val *val2)
Definition: noprefs.c:345
static int NOUI_GetPrefs(char *name, Val *val)
Definition: noprefs.c:312
static char * NOUI_getFontForgeShareDir(void)
Definition: noprefs.c:403
static void NOUI_LoadPrefs(void)
Definition: noprefs.c:447
static void NOUI_SetDefaults(void)
Definition: noprefs.c:443
static void NOUI_SavePrefs(int not_if_script)
Definition: noprefs.c:450

Definition at line 450 of file noprefs.c.

◆ ps_pointcnt

int ps_pointcnt =5
static

Definition at line 131 of file noprefs.c.

◆ recognizePUA

int recognizePUA
extern

Definition at line 33 of file namelist.c.

◆ rectelipse

int rectelipse =0
static

Definition at line 128 of file noprefs.c.

◆ regular_star

int regular_star =0
static

Definition at line 128 of file noprefs.c.

◆ rr_radius

float rr_radius =0
static

Definition at line 130 of file noprefs.c.

◆ save_to_dir

int save_to_dir =0
static

Definition at line 118 of file noprefs.c.

◆ SaveTablesPref

char* SaveTablesPref
extern

Definition at line 48 of file parsettf.c.

◆ snapdistance

float snapdistance =3.5
static

Definition at line 111 of file noprefs.c.

◆ snaptoint

int snaptoint
extern

Definition at line 40 of file splineutil2.c.

◆ splash

int splash =1
static

Definition at line 106 of file noprefs.c.

Referenced by ShadingImage::fillPatch(), and ShadingImage::generatePatchMeshBitmap().

◆ star_percent

float star_percent =100
static

Definition at line 132 of file noprefs.c.

◆ stop_at_join

int stop_at_join =0
static

Definition at line 112 of file noprefs.c.

◆ TTFFoundry

char* TTFFoundry
extern

Definition at line 40 of file tottf.c.

◆ unused

int unused = 0

Definition at line 162 of file noprefs.c.

◆ unused_string

char* unused_string = ((void *)0)

Definition at line 163 of file noprefs.c.

◆ updateflex

int updateflex =0
static

Definition at line 113 of file noprefs.c.

◆ use_freetype_to_rasterize_fv

int use_freetype_to_rasterize_fv
extern

◆ use_second_indic_scripts

int use_second_indic_scripts
extern

Definition at line 31 of file tottfgpos.c.

◆ xdefs_filename

char* xdefs_filename
static

Definition at line 104 of file noprefs.c.

◆ xuid

char* xuid
extern

Definition at line 51 of file dumppfa.c.

Referenced by DefaultXUID().