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

How to use database and font in android #5

Open
ghost opened this issue May 2, 2016 · 5 comments
Open

How to use database and font in android #5

ghost opened this issue May 2, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented May 2, 2016

Assalamualaikum.

i'm new in android.
how to use the sqlite database and fonts in android ?

thank you

@sharabash
Copy link
Member

the guy who can answer this best is gone for at least a week, just a heads
up

On Mon, May 2, 2016, 5:15 AM Paijo RX [email protected] wrote:

Assalamualaikum.

i'm new in android.
how to use the sqlite database and fonts in android ?

thank you


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#5

@Mr-DDDAlKilanny
Copy link

There are many toturials on interent about that.
This is a good start http://www.tutorialspoint.com/android/android_sqlite_database.htm

@ghost
Copy link
Author

ghost commented May 3, 2016

sorry about my question before.
what i mean is how to use madani.sqlite3.db and fonts(QCF_P001.TTF) to generate image of some ayah to display on view in android?

@ahmedre
Copy link
Contributor

ahmedre commented May 11, 2016

sorry for the delay - basically, the database file has a table with some columns - the sura number, ayah number, page number, line on the page, and the text. if you want to actually use this information to draw images yourself (instead of using the images this project generates for you), you basically just need to display the text in the database using the font corresponding to the page.

in other words, to display the ayah 1 of surah fatiha, you'd use QCF_P001.TTF (since the page number is 1, so for sura Nas, you'd use QCF_P604.TTF), and you'd draw the text that's present in the table where page is 1, sura is 1, ayah is 1, and line is 1.

@tanker06
Copy link

How to use fonts is not clear, for example, if I want to choose Surah al Imran, and there are generally other inscriptions appear.

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

No branches or pull requests

4 participants