Revision: 201002 RCL_3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:50:22 +0200
branchRCL_3
changeset 9 2013ebce6d92
parent 3 de36cc5e7eac
child 10 b8b9ec0d9e3f
child 14 134a83fd6d82
Revision: 201002 Kit: 201007
gfxtools/gditools/fontcomp/DISTRIBUTION.POLICY
gfxtools/gditools/fontcomp/EFF.CPP
gfxtools/gditools/fontcomp/FONTCOMP.CPP
gfxtools/gditools/fontcomp/FONTCOMP.H
gfxtools/gditools/fontcomp/FSC.CPP
gfxtools/gditools/fontcomp/GDSFCOMP.CPP
gfxtools/gditools/fontcomp/GDSFCOMP.H
gfxtools/gditools/group/FONTCOMP.MMP
gfxtools/gditools/group/bld.inf
svgtencoder/svgtenc/standalone/lib/SVGTBinEncode.exe
svgtencoder/svgtenc/standalone/lib/SYMDEFCPPDLL.dll
--- a/gfxtools/gditools/fontcomp/DISTRIBUTION.POLICY	Tue Jan 26 12:55:26 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-Category T
-OSD:	Reference/Test	Bitmap and font conversion utilities (GDITOOLS)
--- a/gfxtools/gditools/fontcomp/EFF.CPP	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/fontcomp/EFF.CPP	Fri Feb 19 23:50:22 2010 +0200
@@ -16,7 +16,7 @@
 */
 
 
-#include "FONTCOMP.H"
+#include "fontcomp.h"
 
 EffRead::EffRead(fstream& aFile,FontCompiler& aFontCompiler,Fxf* aFxf,short int* aMapSpace):
 	FontRead(aFile,aFontCompiler,aFxf),
--- a/gfxtools/gditools/fontcomp/FONTCOMP.CPP	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/fontcomp/FONTCOMP.CPP	Fri Feb 19 23:50:22 2010 +0200
@@ -15,8 +15,7 @@
 *
 */
 
-
-#include "FONTCOMP.H"
+#include "fontcomp.h"
 
 FontCompiler::FontCompiler():
 	iInputFile(),
@@ -40,7 +39,7 @@
 #ifdef __MSVCDOTNET__
 		fstream tempfile(mapfile, ios::in | ios::binary);
 #else //!__MSVCDOTNET__
-		fstream tempfile(mapfile, ios::in | ios::binary | ios::nocreate);
+		fstream tempfile(mapfile, ios::in | ios::binary);
 #endif //__MSVCDOTNET__
 
 		if(!tempfile.is_open())
@@ -53,7 +52,7 @@
 #ifdef __MSVCDOTNET__
 	iInputFile.open(infile, ios::in | ios::binary);
 #else //!__MSVCDOTNET__
-	iInputFile.open(infile, ios::in | ios::binary | ios::nocreate);
+	iInputFile.open(infile, ios::in | ios::binary);
 #endif //__MSVCDOTNET__
 
 	if(!(iOutputFile.is_open() && iInputFile.is_open()))
@@ -150,7 +149,7 @@
 			    bit>>=1;
 			    if (bit==0)
 				{
-				bit=unsigned char(0x80);
+				bit= (unsigned char)0x80;
 				pb--;
 				}
 			    }
--- a/gfxtools/gditools/fontcomp/FONTCOMP.H	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/fontcomp/FONTCOMP.H	Fri Feb 19 23:50:22 2010 +0200
@@ -20,7 +20,7 @@
 #define __FONTCOMP_H__
 #include <stdlib.h>
 #include <string.h>
-#include <io.h>
+#include <stdio.h>
 
 #ifdef __MSVCDOTNET__
 #include <fstream>
--- a/gfxtools/gditools/fontcomp/FSC.CPP	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/fontcomp/FSC.CPP	Fri Feb 19 23:50:22 2010 +0200
@@ -16,7 +16,7 @@
 */
 
 
-#include "FONTCOMP.H"
+#include "fontcomp.h"
 
 FscRead::FscRead(fstream& aFile,FontCompiler& aFontCompiler,Fxf* aFxf):
 	FontRead(aFile,aFontCompiler,aFxf)
--- a/gfxtools/gditools/fontcomp/GDSFCOMP.CPP	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/fontcomp/GDSFCOMP.CPP	Fri Feb 19 23:50:22 2010 +0200
@@ -16,8 +16,10 @@
 */
 
 
-#include "GDSFCOMP.H"
-#include "TOOLSVER.H"
+#include "gdsfcomp.h"
+#include "toolsver.h"
+
+#include <sstream>
 
 int GdsFontCompiler::WriteFont()
 	{
@@ -155,7 +157,7 @@
 		WriteFormattedData(buf,1);
 	}
 
-void GdsFontCompiler::WriteFormattedData(char* aData,int aNewLine)
+void GdsFontCompiler::WriteFormattedData(const char* aData,int aNewLine)
 	{
 	if(aData)
 		iOutputFile << aData;
@@ -165,9 +167,11 @@
 
 void GdsFontCompiler::WriteFormattedData(int aNum,int aNewLine)
 	{
-	char numbuf[16];
-	_itoa(aNum,numbuf,10);
-	WriteFormattedData(numbuf,aNewLine);
+    std::stringstream ss;
+
+    ss << aNum;
+
+	WriteFormattedData(ss.str().c_str(), aNewLine);
 	}
 
 void GdsFontCompiler::WriteNewLine()
--- a/gfxtools/gditools/fontcomp/GDSFCOMP.H	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/fontcomp/GDSFCOMP.H	Fri Feb 19 23:50:22 2010 +0200
@@ -19,7 +19,7 @@
 #if !defined(__GDSFCOMP_H__)
 #define __GDSFCOMP_H__
 #if !defined(__FONTCOMP_H__)
-#include "FONTCOMP.H"
+#include "fontcomp.h"
 #endif
 /**
 @internalComponent
@@ -39,7 +39,7 @@
 	void WriteFooter();
 	void WriteCharData(int);
 	void WriteBlankLines(int,int);
-	void WriteFormattedData(char*,int=0);
+	void WriteFormattedData(const char*,int=0);
 	void WriteFormattedData(int,int=0);
 	void WriteNewLine();
 	};
--- a/gfxtools/gditools/group/FONTCOMP.MMP	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/group/FONTCOMP.MMP	Fri Feb 19 23:50:22 2010 +0200
@@ -22,6 +22,7 @@
 TARGETTYPE       exe
 
 USERINCLUDE   ../inc
+USERINCLUDE   ../fontcomp
 USERINCLUDE ../../../inc
 USERINCLUDE ../../inc
 
--- a/gfxtools/gditools/group/bld.inf	Tue Jan 26 12:55:26 2010 +0200
+++ b/gfxtools/gditools/group/bld.inf	Fri Feb 19 23:50:22 2010 +0200
@@ -25,18 +25,22 @@
 
 PRJ_PLATFORMS
 
-TOOLS
+TOOLS TOOLS2
 
 
 PRJ_EXPORTS
 
 ../group/fontcomp.ipr    /epoc32/engdoc/tools/fontcomp.ipr
 
+// IBY-files
+../rom/gdi.iby	CORE_IBY_EXPORT_PATH(tools,gdi.iby)
+
+
 PRJ_MMPFILES
 
-#ifdef TOOLS
+#if (defined TOOLS ) || (defined TOOLS2)
 
-../group/FONTCOMP.MMP
+../group/fontcomp.mmp
 
 // NOTICE! Bmconv is moved to /s60/tools/platformtools/gfxtools/bmconv/group
 
Binary file svgtencoder/svgtenc/standalone/lib/SVGTBinEncode.exe has changed
Binary file svgtencoder/svgtenc/standalone/lib/SYMDEFCPPDLL.dll has changed