NeXTSTEP source code.
NeXTSTEP source code dump.
Macros | Functions | Variables
afm.m File Reference
#import <stdio.h>
#import "appkit/nextstd.h"
#import "Font.h"
#import "afmprivate.h"

Macros

#define SCREEN_TABS
 
#define ENCODING_SIZE   256
 
#define BUFMAX   512
 
#define DEFAULTUNITSIZE   (1000.0)
 
#define SKIP_WS(c)   while( *(c) == ' ' ) (c)++;
 
#define SKIP_TO_WS(c)   while( *(c) != ' ' ) (c)++;
 
#define SKIP_THRU_SC(c)   while( *(c)++ != ';') ;
 
#define IS_WS(c)   ((c) == ' ')
 
#define BUF_SIZE   256
 
#define BUF_HYST   4
 
#define IS_MATCH(nm, len, fl)   ((getFlags & (fl)) && !strncmp(bc,(nm),(len)))
 
#define NO_MATCH_FOUND
 

Functions

static char * mallocString ()
 
static int doOneString ()
 
static int getLine ()
 
static int nextKey ()
 
NXFontMetricsDPSReadFontInfo (stuff, flags, file) NXFontMetrics *stuff
 
 if (getFlags=flags)
 
 while (!quit)
 
 return (0)
 
 if (! *s)
 
 if (!c) return NULL
 
 SKIP_TO_WS (end)
 
 if (!(*n=mallocString(end - c+1))) return NULL
 
 if (metrics->numBuffers==0) charCount
 
 if (charCount+len > BUF_SIZE)
 

Variables

int flags
 
FILEfile
 
return stuff
 
register int i
 
register float * f = atof(c) / unitSize
 
NXCharDatacd
 
NXCompositeCharch
 
NXCompositePartcp
 
NXLigaturelig
 
NXKernTrackk
 
NXKernPairkp
 
int currTrack = 0
 
int currPair = 0
 
int currCompChar = 0
 
int currCompPart = 0
 
int currChar
 
int quit = NO
 
int doneFlags = getFlags
 
register char ** s
 
register char * end
 
return c
 
register char ** n = '\0'
 
register char * ret = metrics->buffers[metrics->numBuffers - 1] + charCount
 
register NXFontMetricsmetrics = metricsParam
 

Macro Definition Documentation

◆ BUF_HYST

#define BUF_HYST   4

◆ BUF_SIZE

#define BUF_SIZE   256

◆ BUFMAX

#define BUFMAX   512

◆ DEFAULTUNITSIZE

#define DEFAULTUNITSIZE   (1000.0)

◆ ENCODING_SIZE

#define ENCODING_SIZE   256

◆ IS_MATCH

#define IS_MATCH (   nm,
  len,
  fl 
)    ((getFlags & (fl)) && !strncmp(bc,(nm),(len)))

◆ IS_WS

#define IS_WS (   c)    ((c) == ' ')

◆ NO_MATCH_FOUND

#define NO_MATCH_FOUND
Value:
if(bc == Buffer) /* if failed at start of line */ \
lineDone = YES; /* bail out of this line */ \
else /* else go on to next ; */ \
SKIP_THRU_SC(bc); /* separated item */
#define YES
Definition: define.h:26

◆ SCREEN_TABS

#define SCREEN_TABS

◆ SKIP_THRU_SC

#define SKIP_THRU_SC (   c)    while( *(c)++ != ';') ;

◆ SKIP_TO_WS

#define SKIP_TO_WS (   c)    while( *(c) != ' ' ) (c)++;

◆ SKIP_WS

#define SKIP_WS (   c)    while( *(c) == ' ' ) (c)++;

Function Documentation

◆ doOneString()

static int doOneString ( )

◆ DPSReadFontInfo()

NXFontMetrics* DPSReadFontInfo ( stuff  ,
flags  ,
file   
)

◆ getLine()

static int getLine ( )

◆ if() [1/6]

if ( ! *  s)

◆ if() [2/6]

if ( !(*=-+  1c)

◆ if() [3/6]

if ( c)

◆ if() [4/6]

if ( charCount len,
BUF_SIZE   
)

◆ if() [5/6]

if ( getFlags   = flags)

◆ if() [6/6]

if ( metrics->  numBuffers = =0)

◆ mallocString()

static char * mallocString ( )

◆ nextKey()

static int nextKey ( )

◆ return()

return ( )

◆ SKIP_TO_WS()

SKIP_TO_WS ( end  )

◆ while()

while ( quit)

Variable Documentation

◆ c

return c

◆ cd

◆ ch

NeXT_MOD char ch

◆ cp

◆ currChar

int currChar

◆ currCompChar

int currCompChar = 0

◆ currCompPart

int currCompPart = 0

◆ currPair

int currPair = 0

◆ currTrack

int currTrack = 0

◆ doneFlags

int doneFlags = getFlags

◆ end

exhibit filing behavior file which that when clause is restrictive in accordance with your request as you requested very in the field of in a great deal of much a large number of many a majority of most the great majority of most a number of some abovementioned these absolutely complete complete absolutely essential essential accordingly so accounted for by the fact that due caused because activate begin actual experience experience actually really actual facts facts add the point that add that added increments increments adequate enough adequate advent arrival afford an opportunity permit after this is accomplished then aggregate total all of all all throughout throughout along the line of like along the lines of like along the same line like an example of this is the fact that thus an order of magnitude times analyzation analysis and or AVOID and etc etc another additional another answer is in the affirmative answer is yes anticipate expect any and all all are of the opinion that think believe that are of the same opinion agree arrive at a decision decide arrive at an approximation estimate as a matter of fact in fact or OMIT as a method of for as a consequence of because as is the case as happens as of this date today as good or better than as good as or better than good and very as long as if as of now now as shown in X X shows that as per AVOID as regards about as related to about as soon as when as to on as to whether whether the question as to whether whether assist help assistance help give assistance to help assuming that if at a later date later at about at at at below below at all times always at an early date shortly at an earlier date previously at the present moment in time now at the present time now at the time when when at this point in time now at this time now at which time when at your earliest convenience soon in back of behind in behind behind based on the fact that because basic fundamentals fundamentals be cognizant of notice being that since being as since brief in duration fast bring to a conclusion finish but that that but what that by means of by by the use of by carry out experiments experiment center portion center center around center on center about center on check check up check on check circle around circle collaborate together collaborate collect together collect combine together combine come to an end end commence begin common accord accord compensation pay completely eliminated eliminated completely full full concerning about conclude end conduct an investigation of investigate conjecture guess connect together connect connect up connect consensus of opinion consensus consequent result result consequently so consolidate together consolidate construct build contemplate plan continue to remain remain continue on continue cooperate together cooperate count up count could of could have couple together couple debate about debate definitely decide on select demean prove depreciate in value depreciate deserving of deserve desirable benefits benefits desirous of desire despite the fact that though different than only to introduce a clause discontinue stop distant from from disutility uselessness divide up divide due to owing to due to the fact that because duly noted noted during the time that while during the course of while each and every each early beginnings beginnings effectuate cause elucidate explain emotional feelings feelings empty out empty enclosed herein enclosed enclosed herewith enclosed encounter meet end result result end up end endeavor try enter enter into enter enthused show enthusiasm entirely complete complete equally as good as good equally good essentially awfully very eventuate happen every now and then now and then exactly identical identical except in a small number of cases usually exhibit a tendency to tend to experiencing difficulty having trouble fabricate build face up to face facilitate help facts and figures facts fast in action fast fearful of fear fearful that fear few in number few fewer in number fewer file away file final completion completion final ending ending final outcome outcome final result result final upshot upshot finalize end find it interesting to know AVOID rather interesting interesting first and foremost first first of all first first beginnings beginnings first initiated initiated firstly first follow after follow following after after for the purpose of to for the reason that since there is reason to believe I think for the simple reason that since for this reason so for your information formalize REWRITE forward send from the point of view of for full and complete complete generally agreed agreed give an indication of indicate give rise to cause indicate suggest give authorization authorize gratuitous gratuitous only for unearned or unwarranted greatly minimize minimize has a deleterious effect injures has got to has to have a need for need referred to as called a preference for prefer have a particular preference for prefer have got to have to has the capability can having reference to this about head up head cannot help but cannot help in the production of to produce hopeful of hope hopeful that hope hopefully avoid usually a misplaced modifier if and when when if at all possible if possible impact A MORE PRECISE WORD implement carry out important essentials essentials importantly REWRITE in a large measure largely in a position to can in accordance with by in advance of before in agreement with agree with in all cases always in a number of cases some in a satisfactory manner satisfactorily in a very real sense in a sense or OMIT in behalf of for in between between in case if in no case never in close proximity near in conflict with oppose or contradict in conjunction with with in connection with concerning in large measure largely in many cases often in most cases usually in my opinion I think in order to to in rare cases rarely in some cases sometimes in reference with reference to about in regard to about or another simple preposition in regards to as regards in relation with with in relation to to in respect to about with respect to about in short supply scarce in terms of about in the amount of for in the case of if in the course of during in the event of if in the event that if in the form of as in the instance of for in the interim meanwhile in the last analysis in the light of the fact that because in the majority of generally in the matter of about in the near future soon in the possession of have in possession of have in the neighborhood of about in the not too distant future soon in the proximity of about in the range of between in the same way as described in the same as described in the shape of usually unnecessary in the vicinity of near in this case here in view of the above therefore in view of since in view of the fact that because in view of the foregoing circumstances therefore in violation of violate inasmuch as as initial first initialize start initiate start injurious to damage inquire ask inside of inside institute begin institute a change change institute an improvement improve intents and purposes intents intermingle mingle involve the necessity of require irregardless regardless is defined as is is indicative of indicates is suggestive of suggests is used to control controls is used to provide provides is when is assume join together join joint cooperation cooperation joint partnership partnership just exactly exactly kind of rather know about know large in size large last but not least AVOID later on later leaving out of consideration disregarding liable likely link up link literally lose out on lose main essentials essentials in a precise manner precisely make a calibration calibrate might of might have must of must have make a purchase buy make a study of study make adjustments to adjust make an approximation of approximate make an examination of examine with the exception of except make an exception of except make application to apply make contact with see meet make mention of mention make out a list of list make the acquaintance of meet make the adjustment adjust maximum possible maximum meaningful significant or REWRITE meet up with meet melt down melt melt up melt merge together merge methodology method mingle together mingle minimize as far as possible minimize miss out on miss mix together mix modification change more preferable preferable most unique unique mutual cooperation cooperation necessary requisite requisite necessitate require need nice A MORE EXACT WORD not in a position to cannot not of a high order of accuracy inaccurate notwithstanding the fact that although of considerable magnitude big large great overall general complete of that of which of the order of magnitude of about of very minor importance unimportant off of off on a few occasions occasionally on account of because on account of the fact that because on behalf of for on the grounds that since because as on the occasion of on when on the order of about nearly on the basis of by from because on the part of by one of the one a open up open operates to correct corrects optimum best outside of outside besides except over with over past history history perceptive of perceive perform do perform a measurement measure perform the measurement measure permits the reduction of reduces personalize REWRITE pertaining to about on physical size size plan ahead plan plan for the future plan plan in advance plan plan on plan present a conclusion conclude present a report report presently etc etc range all the way from range from reason is because reason is that or because reason why reason recur again recur reduce down reduce refer back refer reflective of reflect regretful regrettable reinitiate start again relative to about repeat again repeat repeat the is apparent send a communication to notify short space of time sort time single unit unit small in size small so as to to sort of rather spell out explain state the point that state that still continue continue still remain remain stress the point that stress that subsequent next sufficient enough subsequent to after substantially in agreement agree succeed in doing accomplish superior than superior to surrounding circumstances circumstances take appropriate action act appropriately take appropriate measures act take cognizance of notice take into consideration consider termed as termed terminate end
Initial value:
{
register int len
int len
Definition: SynthData.m:133

◆ f

register unsigned short * f = atof(c) / unitSize

◆ file

◆ flags

int flags

◆ i

int i
Initial value:
{
register char *c
return c
Definition: afm.m:450

◆ k

◆ kp

◆ lig

NXLigature* lig

◆ metrics

NXFontMetrics * metrics = metricsParam

◆ n

(* n)[end - c] = '\0'

◆ quit

quit = NO

◆ ret

kern_return_t ret = metrics->buffers[metrics->numBuffers - 1] + charCount

◆ s

register char** s

◆ stuff

return stuff