Results 1 to 6 of 6
  1. #1
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    523
    Reputation
    151
    Thanks
    1,899
    My Mood
    Amused

    Converting Font to Byte Array

    Hey guys, I was just wondering how to convert a font into a byte array, I know it is possible and I created a program which converts a string into a byte array, but I wiped my hard drive and forgot to back it up, as I do not have time to create another I am asking if you guys know another way.
    Last edited by arun823; 10-13-2012 at 12:04 PM.
    Reversing is the only way to move forward.

  2. #2
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    you want to convert a string to a bytearray or a font file to a byte array?
    DJector.Lite
    Get the advantages of new injection technology, with 1 click easy to use injector, work for all platforms x86/x64

    Download

    D-Jector
    Get the most advanced and full featured injector around, works for any game and any platform x86/x64, nothing comes even close.
    Download

  3. The Following User Says Thank You to Departure For This Useful Post:

    Saltine (10-13-2012)

  4. #3
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    523
    Reputation
    151
    Thanks
    1,899
    My Mood
    Amused
    Quote Originally Posted by Departure View Post
    you want to convert a string to a bytearray or a font file to a byte array?
    Either one works fine for me. Preferably font file
    Reversing is the only way to move forward.

  5. #4
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    a String kinda is an array of chars in ascii and a char is a signed byte
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  6. #5
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    493
    Reputation
    104
    Thanks
    629
    Create and array type byte the length of the string, and then iterate through the string from index 0 to length-1, casting each char to a byte and storing it in the equal index of the byte array.
    /solved

    Oh no! Vortex is gay!

  7. The Following User Says Thank You to Saltine For This Useful Post:

    [MPGH]Flengo (10-13-2012)

  8. #6
    YellowFever's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    11,906
    Reputation
    488
    Thanks
    1,949
    My Mood
    Twisted
    ^
    /Solved
    /Closed
    .





    Member Since: 20/02/2011
    Donator Since: 12/08/2011
    Minion Since: 04/10/2012

Similar Threads

  1. [RELEASE||HELP]Compression and Encryption of Byte Arrays
    By topblast in forum Visual Basic Programming
    Replies: 0
    Last Post: 12-24-2010, 01:21 AM
  2. [Release] Load font by BYTE
    By kotentopf in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 11-01-2010, 01:10 PM
  3. [Help]Concatenate byte arrays
    By freedompeace in forum C++/C Programming
    Replies: 6
    Last Post: 10-14-2010, 11:01 AM
  4. [Tutorial]Convert Bits 2 Bytes
    By NextGen1 in forum Visual Basic Programming
    Replies: 7
    Last Post: 01-19-2010, 08:53 PM
  5. Converting Assembly Into Bytes
    By radnomguywfq3 in forum Visual Basic Programming
    Replies: 0
    Last Post: 09-24-2007, 04:42 PM