unicode

  1. FrostyCat

    GML Handling CJK Text in GMS 2

    Handling CJK Text in GMS 2 Overview This article documents the best practices for font setup and text drawing with Chinese, Japanese, or Korean text (CJK) in GameMaker Studio 2. What Is So Different About CJK Text? You can't use most fonts familiar to Western audiences. This includes many...
  2. S

    SOLVED About Unicode string

    Hello everyone! Question: Is there any way to interpret a string in "unicode" style into real unicode like gms2 itself in coding? For example, I have a string = " \u6c34\u95e8" which is "水门" in chinese. When Im programming, it's easy to use show_message("\u6c34\u95e8") to get 水门 in...
  3. Anixias

    SOLVED Mapping Delete Key to ord("\x7F") For Use With keyboard_lastchar

    Hi, all. I'm attempting to make a robust textbox system using keyboard_lastchar. This works automatically with backspaces as long as you handle "\b" as removing the character the cursor is on rather than literally adding the character "\b" to the string. It also automatically works with holding...
  4. G

    GameMaker Empty Boxes at newline locations after converting a txt file to string

    Hi everybody. I'm stumped on this one. I've been messing around with it for about an hour now, and I just can't figure out what this character is that keeps appearing at the end of a line after converting a txt file of dialogue to a string to use inside the game. I wrote this function to return...
  5. E

    GameMaker Replace "▯" with something else

    Hi all, Thanks for this amazing community. There is so much valuable info to find here. Anyway, I'm struggling with displaying text right now. We take names from another API and show them ingame, however when that name is in Arabic, Korean, Chinese or using some other characters that aren't in...
  6. Kyrieru

    GameMaker Getting Japanese text from a a txt file.

    Following some advice I was able to read from a .txt file and get a dialogue system working with english. if file_exists(path+file) { read = file_text_open_read(path+file); var num = 0; while (!file_text_eof(read)) { str[num++] = file_text_read_string(read); message[num] = ""...
  7. M

    Setting a string into a hexidecimal value

    I am trying to change a number value into its corresponding character hexidecimal value for use as my own custom file encryption. I am trying to figure out if there is a possibility to assign a string to a hexidecimal like so: "00F8" into $00F8 These are NOT colours by the way. They are...
  8. Carolusclen

    Legacy GM UNICODE Fonts

    Hey Guys Ok, so, GM:S has the ability to add fonts and choose the ranges in them. This is good for when you want to draw asian language characters and all. My issue is I am trying to use an Akkadian font. The unicode range is U+12000 to U+123FF I am just not able to get this to work. An...
  9. R

    How to show your whole keyboard with unicode or ascii?

    I used the chr() to convert the ascii code to string.. but it looks like you can almost only see the letters and numbers the way it is meant to be the part on the keyboard around numlock doesn't show numbers but letters and all special characters are nope... (I understand that space and shift...
  10. K

    send unicode text to serevr from android

    hi i am trying to save unicdoe text to a database on sever,sending from my game on android. it works properly on windows,sends and saves the text but from android it saves as : "??????" it even works good when i send data via chrome on my phone but dosent work in game. i am using game maker...
Top