{"id":30909254,"url":"https://github.com/unity3d-jp/fontadjust","last_synced_at":"2025-09-09T15:35:27.802Z","repository":{"id":144707476,"uuid":"67212563","full_name":"unity3d-jp/FontAdjust","owner":"unity3d-jp","description":"Unity5.3系→5.4等に移行すると、UI.Textが Y方向にずれてしまうため、それを解決するツールを作りました","archived":false,"fork":false,"pushed_at":"2016-09-02T11:37:33.000Z","size":1332,"stargazers_count":4,"open_issues_count":0,"forks_count":6,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-05T22:25:42.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unity3d-jp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-02T10:08:13.000Z","updated_at":"2024-01-11T07:53:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"604def46-9248-4396-923f-38a26170afd9","html_url":"https://github.com/unity3d-jp/FontAdjust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unity3d-jp/FontAdjust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity3d-jp%2FFontAdjust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity3d-jp%2FFontAdjust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity3d-jp%2FFontAdjust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity3d-jp%2FFontAdjust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unity3d-jp","download_url":"https://codeload.github.com/unity3d-jp/FontAdjust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unity3d-jp%2FFontAdjust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274318297,"owners_count":25263075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-09T15:35:23.672Z","updated_at":"2025-09-09T15:35:27.708Z","avatar_url":"https://github.com/unity3d-jp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FontAdjust について\nUnity5.3系→5.4等に移行すると、UguiのTextが Y方向にずれてしまう問題があります。\u003cbr /\u003e\n![alt text](doc/img/53xto54x.png)\n\n5.3ベースで作成していただいた方々が、5.4以降にスムーズに移行する手助けのため、本ツールを用意させていただきました。\u003cbr /\u003e\n\n下記のような形で動作いたします\u003cbr /\u003e\n![alt text](doc/img/FontAdjust.gif)  \n\n\n※1.フォントのデータ次第で、ずれ方が違っておりましたため 全てカバーしきれるかはわかりません。\u003cbr /\u003e\n※2.また複数行ある場合などでの動作も保証は出来ない状態になっております。\u003cbr /\u003e\n※3.プロジェクト内にフォントデータを内蔵している場合のみ動作いたします。\n\n\n# 使用方法等\n\nFontAdjust.unitypackage をプロジェクトにインポートすることで必要なものが入ります。\u003cbr /\u003e\n\nメニューの Tools/FontAdjust/FontAdjustWindowを呼び出すと下記ウィンドウが出てきます。\u003cbr /\u003e\n![alt text](doc/img/FontAdjustWindow.png)  \n\n・Modeの項目では、上にずらすか下にずらすかを選択できます。5.3-\u003e5.4ならば「position up」に指定してください。\u003cbr /\u003e\n・「Execute each prefab」では、Project内にあります全てのprefab中の全てのUI.Textに対して処理をします。\u003cbr /\u003e\n・「Execute All Scene」では、Project内にあります全てのシーンの全てのUI.Textに対して処理をします。\u003cbr /\u003e\n・「Execute Current Scene」では、現在開いているシーンの全てのUI.Textに対して処理をします。\u003cbr /\u003e\n\n\n\n# サンプルについて\n動作の確認ができるためにサンプルを用意いたしました。\u003cbr /\u003e\ntestシーンを開いたうえで、「Tools/FontAdujust/Debug/CreateTest」にて下記ウインドウを呼び出してください\u003cbr /\u003e\n![alt text](doc/img/CreateTest.png)  \n\nGameObjectを指定する際には、プロジェクト内にあります以下prefabのいづれかを指定してください。\u003cbr /\u003e\n - testTemplateBottom\u003cbr/\u003e\n - testTemplateMiddle\u003cbr/\u003e\n - testTemplateTop\u003cbr/\u003e\n - testTemplateChildObject\u003cbr/\u003e\n\nその後「CreateTest」ボタンを押しますと、プロジェクト内にあるFontデータ分だけテスト用にボタンオブジェクトを生成します。\u003cbr /\u003e\nそれが完了したら、「AdjustTo53」ないしは「AdjustFrom53」を押すことでフォント位置が変わることを確認できると思います。\n\n# 同梱しているフォントについて\nこちらでは、m+フォントを利用させていただいております。\u003cbr /\u003e\nhttps://mplus-fonts.osdn.jp/\n\nまた デモをわかりやすくするために、FontForgeというツールを利用して改変したフォントを同梱しております。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funity3d-jp%2Ffontadjust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funity3d-jp%2Ffontadjust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funity3d-jp%2Ffontadjust/lists"}