Browse Source

Comment on the newly added binary_to_compressed_c.cpp helper program

ocornut 10 years ago
parent
commit
adae98664e
1 changed files with 8 additions and 10 deletions
  1. 8 10
      imgui.cpp

+ 8 - 10
imgui.cpp

@@ -10917,16 +10917,9 @@ static void ShowExampleAppLongText(bool* opened)
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 // FONT DATA
 // FONT DATA
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
-
-//-----------------------------------------------------------------------------
-// ProggyClean.ttf
-// Copyright (c) 2004, 2005 Tristan Grimmer
-// MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip)
-// Download and more information at http://upperbounds.net
-//-----------------------------------------------------------------------------
 // Compressed with stb_compress() then converted to a C array.
 // Compressed with stb_compress() then converted to a C array.
-// Decompressor from stb.h (public domain) by Sean Barrett
-// https://github.com/nothings/stb/blob/master/stb.h
+// Use the program in extra_fonts/binary_to_compressed_c.cpp to create the array from a TTF file.
+// Decompressor from stb.h (public domain) by Sean Barrett https://github.com/nothings/stb/blob/master/stb.h
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 
 
 static unsigned int stb_decompress_length(unsigned char *input)
 static unsigned int stb_decompress_length(unsigned char *input)
@@ -10935,7 +10928,6 @@ static unsigned int stb_decompress_length(unsigned char *input)
 }
 }
 
 
 static unsigned char *stb__barrier, *stb__barrier2, *stb__barrier3, *stb__barrier4;
 static unsigned char *stb__barrier, *stb__barrier2, *stb__barrier3, *stb__barrier4;
-
 static unsigned char *stb__dout;
 static unsigned char *stb__dout;
 static void stb__match(unsigned char *data, unsigned int length)
 static void stb__match(unsigned char *data, unsigned int length)
 {
 {
@@ -11041,6 +11033,12 @@ static unsigned int stb_decompress(unsigned char *output, unsigned char *i, unsi
     }
     }
 }
 }
 
 
+//-----------------------------------------------------------------------------
+// ProggyClean.ttf
+// Copyright (c) 2004, 2005 Tristan Grimmer
+// MIT license (see License.txt in http://www.upperbounds.net/download/ProggyClean.ttf.zip)
+// Download and more information at http://upperbounds.net
+//-----------------------------------------------------------------------------
 static const unsigned int proggy_clean_ttf_compressed_size = 9583;
 static const unsigned int proggy_clean_ttf_compressed_size = 9583;
 static const unsigned int proggy_clean_ttf_compressed_data[9584/4] =
 static const unsigned int proggy_clean_ttf_compressed_data[9584/4] =
 {
 {