{"id":20373122,"url":"https://github.com/st235/richtextview","last_synced_at":"2026-03-04T15:01:33.930Z","repository":{"id":140153827,"uuid":"117662404","full_name":"st235/RichTextView","owner":"st235","description":"A simple way to work with icon fonts. 💰","archived":false,"fork":false,"pushed_at":"2018-08-03T06:55:05.000Z","size":393,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-07T05:44:20.410Z","etag":null,"topics":["android","assets","fonts","icons","java","library","performance","text"],"latest_commit_sha":null,"homepage":"","language":"Java","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/st235.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,"zenodo":null}},"created_at":"2018-01-16T09:26:05.000Z","updated_at":"2024-12-04T18:23:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c1dca4e-28b8-452f-8281-f1057cede700","html_url":"https://github.com/st235/RichTextView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/st235/RichTextView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FRichTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FRichTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FRichTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FRichTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/st235","download_url":"https://codeload.github.com/st235/RichTextView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FRichTextView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30084685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","assets","fonts","icons","java","library","performance","text"],"created_at":"2024-11-15T01:16:44.110Z","updated_at":"2026-03-04T15:01:33.810Z","avatar_url":"https://github.com/st235.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":" [ ![Download](https://api.bintray.com/packages/st235/maven/richtextview/images/download.svg?version=0.0.3) ](https://bintray.com/st235/maven/richtextview/0.0.3/link)\n \n\u003cimg src=\"https://raw.githubusercontent.com/st235/RichTextView/master/pictures/logo.png\" width=\"410\" height=\"138\"\u003e\n\n# RichTextView\n\n## Install\n\nFrom maven\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.st235\u003c/groupId\u003e\n  \u003cartifactId\u003erichtextview\u003c/artifactId\u003e\n  \u003cversion\u003e0.0.3\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nFrom gradle\n\n```\nimplementation 'com.github.st235:richtextview:0.0.3'\n```\n\n## Usage\n\n\u003cimg src=\"https://raw.githubusercontent.com/st235/RichTextView/master/pictures/examples.png\" width=\"270\" height=\"480\"\u003e\n\nFirst of all, the library must be initialized. If this step is omitted, the attempt to use will generate an exception.\n\n```java\npublic class App extends Application {\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n\n        FontProvider.init(getAssets());\n    }\n}\n```\n\nView easily configurable from the markup,\n\n```xml\n    \u003cst235.github.com.richtextview.RichTextView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:gravity=\"center\"\n        android:text=\"No more \u0026#xf1e2;\"\n        android:textSize=\"22sp\"\n        app:fontAsset=\"fontawesome-webfont.ttf\"/\u003e\n```\nbut if you need to download the font manually from the Assets, not everything is lost!\n\n```java\n    /**\n     * loads the font in the specified path relative to the assets folder.\n     * @param fontAsset - font link\n     */\n    public void loadFont(@Nullable String fontAsset)\n```\n\nAlso, you can use the Span to display custom fonts with _CustomFontSpan_.\n\n```java\n    final TextView footer = ...;\n    SpannableString footerText = new SpannableString( \"\\uf0e7 Font Awesome (http://fontawesome.io/)\");\n    footerText.setSpan(new CustomFontSpan(\"\", \"fontawesome-webfont.ttf\"), 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n    footer.setText(footerText);\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2018 Alexander Dadukin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst235%2Frichtextview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fst235%2Frichtextview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst235%2Frichtextview/lists"}