cleanup
This commit is contained in:
		
							parent
							
								
									08521e5018
								
							
						
					
					
						commit
						5f233d7cde
					
				
							
								
								
									
										3
									
								
								fonts.js
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								fonts.js
									
									
									
									
									
								
							@ -447,9 +447,6 @@ var Font = (function Font() {
 | 
				
			|||||||
    for (var i = 0, ii = file.length; i < ii; ++i)
 | 
					    for (var i = 0, ii = file.length; i < ii; ++i)
 | 
				
			||||||
      fileArr.push(file[i]);
 | 
					      fileArr.push(file[i]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    writeToFile(data, '/tmp/' + name + '_new');
 | 
					 | 
				
			||||||
    writeToFile(fileArr, '/tmp/' + name + '_orig');
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    this.data = data;
 | 
					    this.data = data;
 | 
				
			||||||
    this.type = properties.type;
 | 
					    this.type = properties.type;
 | 
				
			||||||
    this.textMatrix = properties.textMatrix;
 | 
					    this.textMatrix = properties.textMatrix;
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,9 @@
 | 
				
			|||||||
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
 | 
					/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
 | 
				
			||||||
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
 | 
					/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					'use strict';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * The Type2 reader code below is only used for debugging purpose since Type2
 | 
					 * The Type2 reader code below is only used for debugging purpose since Type2
 | 
				
			||||||
 * is only a CharString format and is never used directly as a Font file.
 | 
					 * is only a CharString format and is never used directly as a Font file.
 | 
				
			||||||
@ -389,7 +392,7 @@ function writeToFile(aBytes, aFilePath) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  var stream = Cc['@mozilla.org/network/file-output-stream;1']
 | 
					  var stream = Cc['@mozilla.org/network/file-output-stream;1']
 | 
				
			||||||
                 .createInstance(Ci.nsIFileOutputStream);
 | 
					                 .createInstance(Ci.nsIFileOutputStream);
 | 
				
			||||||
  stream.init(file, 0x04 | 0x08 | 0x20, 0666, 0);
 | 
					  stream.init(file, 0x04 | 0x08 | 0x20, 0x180, 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  var bos = Cc['@mozilla.org/binaryoutputstream;1']
 | 
					  var bos = Cc['@mozilla.org/binaryoutputstream;1']
 | 
				
			||||||
              .createInstance(Ci.nsIBinaryOutputStream);
 | 
					              .createInstance(Ci.nsIBinaryOutputStream);
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,6 @@
 | 
				
			|||||||
        <script type="text/javascript" src="../fonts.js"></script>
 | 
					        <script type="text/javascript" src="../fonts.js"></script>
 | 
				
			||||||
        <script type="text/javascript" src="../crypto.js"></script>
 | 
					        <script type="text/javascript" src="../crypto.js"></script>
 | 
				
			||||||
        <script type="text/javascript" src="../glyphlist.js"></script>
 | 
					        <script type="text/javascript" src="../glyphlist.js"></script>
 | 
				
			||||||
        <script type="text/javascript" src="../utils/fonts_utils.js"></script>
 | 
					 | 
				
			||||||
  </head>
 | 
					  </head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user