{"action":"created","issue":{"url":"https://api.github.com/repos/olikraus/u8g2/issues/710","repository_url":"https://api.github.com/repos/olikraus/u8g2","labels_url":"https://api.github.com/repos/olikraus/u8g2/issues/710/labels{/name}","comments_url":"https://api.github.com/repos/olikraus/u8g2/issues/710/comments","events_url":"https://api.github.com/repos/olikraus/u8g2/issues/710/events","html_url":"https://github.com/olikraus/u8g2/issues/710","id":362874707,"node_id":"MDU6SXNzdWUzNjI4NzQ3MDc=","number":710,"title":"Chinese map editing","user":{"login":"fabianlam","id":5612321,"node_id":"MDQ6VXNlcjU2MTIzMjE=","avatar_url":"https://avatars2.githubusercontent.com/u/5612321?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianlam","html_url":"https://github.com/fabianlam","followers_url":"https://api.github.com/users/fabianlam/followers","following_url":"https://api.github.com/users/fabianlam/following{/other_user}","gists_url":"https://api.github.com/users/fabianlam/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianlam/subscriptions","organizations_url":"https://api.github.com/users/fabianlam/orgs","repos_url":"https://api.github.com/users/fabianlam/repos","events_url":"https://api.github.com/users/fabianlam/events{/privacy}","received_events_url":"https://api.github.com/users/fabianlam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-22T17:20:28Z","updated_at":"2018-09-23T09:39:46Z","closed_at":null,"author_association":"NONE","body":"Hello again! I would like to have your helping hand. If I would like to add few Chinese words into the map file. Is there anything or instruction to do? Thank you!"},"comment":{"url":"https://api.github.com/repos/olikraus/u8g2/issues/comments/423803898","html_url":"https://github.com/olikraus/u8g2/issues/710#issuecomment-423803898","issue_url":"https://api.github.com/repos/olikraus/u8g2/issues/710","id":423803898,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzgwMzg5OA==","user":{"login":"olikraus","id":1084992,"node_id":"MDQ6VXNlcjEwODQ5OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1084992?v=4","gravatar_id":"","url":"https://api.github.com/users/olikraus","html_url":"https://github.com/olikraus","followers_url":"https://api.github.com/users/olikraus/followers","following_url":"https://api.github.com/users/olikraus/following{/other_user}","gists_url":"https://api.github.com/users/olikraus/gists{/gist_id}","starred_url":"https://api.github.com/users/olikraus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olikraus/subscriptions","organizations_url":"https://api.github.com/users/olikraus/orgs","repos_url":"https://api.github.com/users/olikraus/repos","events_url":"https://api.github.com/users/olikraus/events{/privacy}","received_events_url":"https://api.github.com/users/olikraus/received_events","type":"User","site_admin":false},"created_at":"2018-09-23T09:39:46Z","updated_at":"2018-09-23T09:39:46Z","author_association":"OWNER","body":"ok, let me try to guess what you want:\r\nYou have a .ttf font (MingLiu) .\r\nYou want a u8g2 font out of it, right?\r\n\r\nSteps for the creation of a u8g2 from a TTF file:\r\n\r\nProcess: .ttf --> .bdf --> .c (u8g2 font c code)\r\nFor the .ttf to .bdf conversion you need an external tool like otf2bdf or fontforge.\r\n\r\nFor the .bdf to .c conversion, you need bdfconv.exe from the u8g2 project, which is available for download here:\r\nhttps://github.com/olikraus/u8g2/tree/master/tools/font/bdfconv\r\nInstructions for the bdf to .c conversion are also mentioned here:\r\n\r\nhttps://github.com/olikraus/u8g2/blob/master/doc/faq.txt#L203\r\n\r\nNow there is another problem: In most cases you do not want all the characters from the original .ttf file in your embedded device. Instead usually a subset is required.\r\nThis information has to be given to \"bdfconv.exe\". By default bdfconv.exe will use the uncodes 32 to 255 only, which anyways is not sufficient. This means: You MUST tell bdfconv.exe which characters to copy from the .bdf file to the .c font format.\r\n\r\nThere are two ways todo this: Directly via commandline (-m option) or by applying an external file (-M option). In case of Chinese languages the external file might be more suitable. So you probably need a file (called \"map file\" due to historical reasons)  which contains all the chars you need in the resulting u8g2 font.\r\n\r\nThe the task for you is to put together a list of unicode numbers, which make up your list of traditional glyphs. You have to format these numbers and put it into the map file as mentioned by @RobotGB .\r\nThen only you can start bdfconv.exe with the provided list of glyphs.\r\n\r\nI personally can not provide this list (because of lacking knowledge on Chinese language and because I do not know your constrains on your project). You can only look at the above linked map files as an example.\r\nIf these files do not fit, you need to create one.\r\n\r\nA quick google search revealed this:\r\nhttps://chinese.stackexchange.com/questions/22484/list-of-all-traditional-chinese-characters\r\n\r\nSo you probably need to convert one of the lists there into a file, which follows the bdfconv.exe syntax.\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"olikraus"}}