Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Support for italic and bold fonts using attribute textStyle#179

Open
gofabian wants to merge 7 commits into
chrisjenx:masterfrom
gofabian:master
Open

Support for italic and bold fonts using attribute textStyle#179
gofabian wants to merge 7 commits into
chrisjenx:masterfrom
gofabian:master

Conversation

@gofabian
Copy link
Copy Markdown

@gofabian gofabian commented Jun 5, 2015

Thanks for this great project. It helped me a lot. Just one thing was missing. Support for bold and italic fonts depending on the attribute textStyle.

I forked gfranks' solution to use the native attribute textStyle for selecting bold/italic fonts.

There have been many redundancies. Therefore I refactored the changes. Additionally I fixed a bug because getTypeface() sometimes returns null.

It would be nice if you could integrate this solution. Let's just discuss about it.

@chrisjenx
Copy link
Copy Markdown
Owner

Cool, thanks for the PR. I'm not a massive fan of having to define bold/italic etc. It should just work with the textStyle attr.

I'll mull this over when I have more time to spend on it.

@amrbrkt
Copy link
Copy Markdown

amrbrkt commented Jul 7, 2017

This is really cool, Thanks

@RafaRuiz
Copy link
Copy Markdown

It's been 5 nice years developing apps for Android, natively, and every time I have to deal with bold/italic, I always end up with a lot of boilerplate code or juniors asking "why should I add fontPath if we didn't add it somewhere else".

Why don't we allow to define default fonts for different Typefaces and override them with fontPath?

It would make our lives really easier.

@chrisjenx
Copy link
Copy Markdown
Owner

@RafaRuiz My suggestion would be to move to the Calligraphy3 if that is something you still need or use the FontProviders in AndroidX now.

@RafaRuiz
Copy link
Copy Markdown

My fault.
I didn't realise there was a 3.
Thanks!

@basmaessen
Copy link
Copy Markdown

When will this branch be merged? Because I'm also having the issue that I want to add multiple styles of a font.

@chrisjenx
Copy link
Copy Markdown
Owner

@basmaessen it won't be, this fork has no active dev. I would move to https://github.com/InflationX

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants