mirror of
https://gitlab.winehq.org/wine/fontforge.git
synced 2025-05-09 00:02:54 +08:00
Various hacks to avoid putting timestamps in generated files.
This commit is contained in:
parent
9f598f5197
commit
65974286fe
@ -1801,12 +1801,14 @@ static int SFD_Dump(FILE *sfd,SplineFont *sf,EncMap *map,EncMap *normal,
|
||||
fprintf(sfd, "OS2Version: %d\n", sf->os2_version );
|
||||
fprintf(sfd, "OS2_WeightWidthSlopeOnly: %d\n", sf->weight_width_slope_only );
|
||||
fprintf(sfd, "OS2_UseTypoMetrics: %d\n", sf->use_typo_metrics );
|
||||
#if 0 /* AJ - don't put timestamps in output files */
|
||||
#ifdef _HAS_LONGLONG
|
||||
fprintf(sfd, "CreationTime: %lld\n", sf->creationtime );
|
||||
fprintf(sfd, "ModificationTime: %lld\n", sf->modificationtime );
|
||||
#else
|
||||
fprintf(sfd, "CreationTime: %ld\n", sf->creationtime );
|
||||
fprintf(sfd, "ModificationTime: %ld\n", sf->modificationtime );
|
||||
#endif
|
||||
#endif
|
||||
if ( sf->pfminfo.pfmset ) {
|
||||
fprintf(sfd, "PfmFamily: %d\n", sf->pfminfo.pfmfamily );
|
||||
|
@ -2801,7 +2801,11 @@ static void sethead(struct head *head,SplineFont *sf,struct alltabs *at,
|
||||
head->flags |= (1<<9); /* Apple documents this */
|
||||
/* if there are any indic characters, set bit 10 */
|
||||
|
||||
#if 0
|
||||
time(&now); /* seconds since 1970, need to convert to seconds since 1904 */
|
||||
#else /* AJ - don't put timestamps in output files */
|
||||
now = 0;
|
||||
#endif
|
||||
cvt_unix_to_1904(now,head->modtime);
|
||||
memcpy(head->createtime,head->modtime,sizeof(head->modtime));
|
||||
}
|
||||
@ -3765,10 +3769,16 @@ void DefaultTTFEnglishNames(struct ttflangname *dummy, SplineFont *sf) {
|
||||
if ( dummy->names[ttf_uniqueid]==NULL || *dummy->names[ttf_uniqueid]=='\0' ) {
|
||||
time(&now);
|
||||
tm = localtime(&now);
|
||||
#if 0
|
||||
sprintf( buffer, "%s : %s : %d-%d-%d",
|
||||
BDFFoundry?BDFFoundry:TTFFoundry?TTFFoundry:"FontForge 2.0",
|
||||
sf->fullname!=NULL?sf->fullname:sf->fontname,
|
||||
tm->tm_mday, tm->tm_mon+1, tm->tm_year+1900 );
|
||||
#else /* AJ - don't put timestamps in output files */
|
||||
sprintf( buffer, "%s : %s",
|
||||
BDFFoundry?BDFFoundry:TTFFoundry?TTFFoundry:"FontForge 2.0",
|
||||
sf->fullname!=NULL?sf->fullname:sf->fontname );
|
||||
#endif
|
||||
dummy->names[ttf_uniqueid] = copy(buffer);
|
||||
}
|
||||
if ( dummy->names[ttf_fullname]==NULL || *dummy->names[ttf_fullname]=='\0' )
|
||||
|
@ -2209,6 +2209,7 @@ int ttf_fftm_dump(SplineFont *sf,struct alltabs *at) {
|
||||
|
||||
putlong(at->fftmf,0x00000001); /* Version */
|
||||
|
||||
#if 0
|
||||
cvt_unix_to_1904(library_version_configuration.library_source_modtime,results);
|
||||
putlong(at->fftmf,results[1]);
|
||||
putlong(at->fftmf,results[0]);
|
||||
@ -2220,6 +2221,14 @@ int ttf_fftm_dump(SplineFont *sf,struct alltabs *at) {
|
||||
cvt_unix_to_1904(sf->modificationtime,results);
|
||||
putlong(at->fftmf,results[1]);
|
||||
putlong(at->fftmf,results[0]);
|
||||
#else /* AJ - don't put timestamps in output files */
|
||||
putlong(at->fftmf,0);
|
||||
putlong(at->fftmf,0);
|
||||
putlong(at->fftmf,0);
|
||||
putlong(at->fftmf,0);
|
||||
putlong(at->fftmf,0);
|
||||
putlong(at->fftmf,0);
|
||||
#endif
|
||||
|
||||
at->fftmlen = ftell(at->fftmf); /* had better be 7*4 */
|
||||
/* It will never be misaligned */
|
||||
|
Loading…
x
Reference in New Issue
Block a user