{"id":18687990,"url":"https://github.com/anitaa1990/customfontview","last_synced_at":"2025-08-23T04:06:25.263Z","repository":{"id":117939844,"uuid":"100477042","full_name":"anitaa1990/CustomFontView","owner":"anitaa1990","description":"Custom View classes for TextView, EditText \u0026 Buttons - to set custom fonts","archived":false,"fork":false,"pushed_at":"2017-08-21T07:59:47.000Z","size":303,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T05:33:15.124Z","etag":null,"topics":["android","android-app","android-application","android-architecture","android-library","android-sample","android-sdk","android-studio","android-ui","custom-fonts","edittext","textview"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anitaa1990.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":"2017-08-16T10:19:55.000Z","updated_at":"2022-10-04T17:26:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"95aa147a-3120-4011-ab69-a06da641b5a4","html_url":"https://github.com/anitaa1990/CustomFontView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anitaa1990/CustomFontView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitaa1990%2FCustomFontView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitaa1990%2FCustomFontView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitaa1990%2FCustomFontView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitaa1990%2FCustomFontView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anitaa1990","download_url":"https://codeload.github.com/anitaa1990/CustomFontView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anitaa1990%2FCustomFontView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271740720,"owners_count":24812642,"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-08-23T02:00:09.327Z","response_time":69,"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":["android","android-app","android-application","android-architecture","android-library","android-sample","android-sdk","android-studio","android-ui","custom-fonts","edittext","textview"],"created_at":"2024-11-07T10:35:09.179Z","updated_at":"2025-08-23T04:06:25.235Z","avatar_url":"https://github.com/anitaa1990.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CustomFontView\n\u003cimg src=\"https://camo.githubusercontent.com/7a097bb07d47506d643804b222bb8ad2be336498/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4150492d392532422d6f72616e67652e7376673f7374796c653d666c6174\" alt=\"API\" data-canonical-src=\"https://img.shields.io/badge/API-9%2B-orange.svg?style=flat\" style=\"max-width:100%;\"\u003e [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FontView-blue.svg?style=flat)](https://android-arsenal.com/details/1/6068)\n\n\nCustom font classes for TextView, EditText \u0026amp; Buttons\n\n![screenshot_20170816-153601](https://user-images.githubusercontent.com/22608780/29374593-9d9f71d4-82cf-11e7-915d-dcead8093d40.png)\n\n\u003ch2\u003eHow to integrate the library in your app?\u003c/h2\u003e\n\u003cb\u003eGradle Dependecy\u003c/b\u003e\u003c/br\u003e\n\n```gradle\ndependencies {\n        compile 'com.an.customfontview:customfont:0.1.0'\n}\n```\n\n\u003cb\u003eMaven Dependecy\u003c/b\u003e\u003c/br\u003e\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.an.customfontview\u003c/groupId\u003e\n  \u003cartifactId\u003ecustomfont\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.0\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n\u003ch2\u003eAdd fonts\u003c/h2\u003e\n\nAdd your custom fonts to ```assets/``` .\u003c/br\u003e\nIf the assets directory does not already exist, you should create it under ```src/main/``` in your project directory.\u003c/br\u003e\nYou might consider creating a ```fonts/``` subdirectory in the assets directory (as in examples).\n\n\u003ch2\u003eUsage\u003c/h2\u003e\n\nAdd the below line to the root layout of your xml file:\n\n```xml\nxmlns:app=\"http://schemas.android.com/apk/res-auto\"\n```\n\n\u003ch3\u003eCustom TextView\u003c/h3\u003e\n\n```xml\n.....\n       \u003ccom.an.customfontview.CustomTextView\n          android:layout_gravity=\"center\"\n          android:layout_width=\"wrap_content\"\n          android:layout_height=\"wrap_content\"\n          app:textFontPath=\"fonts/gotham_bold.otf\"\n          android:text=\"Works for any number of fonts\" /\u003e\n.....\n``` \n\n\u003ch3\u003eCustom EditText\u003c/h3\u003e\n\n```xml\n.....\n       \u003ccom.an.customfontview.CustomEditText\n          android:text=\"Works for edit text too!\"\n          android:layout_width=\"match_parent\"\n          android:layout_height=\"wrap_content\"\n          app:editFontPath=\"fonts/product_sans.ttf\" /\u003e\n.....\n``` \n\n\u003ch3\u003eCustom Buttons\u003c/h3\u003e\n\n```xml\n.....\n           \u003ccom.an.customfontview.CustomButton\n              android:layout_gravity=\"center\"\n              android:layout_width=\"wrap_content\"\n              android:layout_height=\"wrap_content\"\n              app:btnFontPath=\"fonts/gt_medium.otf\"\n              android:text=\"Works for me too!\"/\u003e\n.....\n``` \n\nThat's all folks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanitaa1990%2Fcustomfontview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanitaa1990%2Fcustomfontview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanitaa1990%2Fcustomfontview/lists"}