Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Typeface #45

Closed
GoogleCodeExporter opened this issue Jul 3, 2015 · 3 comments
Closed

Request: Typeface #45

GoogleCodeExporter opened this issue Jul 3, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link


I need use typeface with my TextView, anything like
aq.id().typeFace("myFont.ttf"); would be great :-)

Original issue reported on code.google.com by julien.quievreux on 2 May 2012 at 2:20

@GoogleCodeExporter
Copy link
Author

Original comment by tinyeeliu@gmail.com on 2 May 2012 at 6:31

  • Changed state: Started
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

this code work with a good path:

    public T typeface(String typeface){

        if(view != null){
            Context context = getContext();
            ((TextView) view).setTypeface(Typeface.createFromAsset(context.getAssets(), typeface));
        }
        return self();
    }

Original comment by julien.quievreux on 10 May 2012 at 2:34

@GoogleCodeExporter
Copy link
Author

Original comment by tinyeeliu@gmail.com on 13 Jul 2012 at 7:43

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant