🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mobile.android
Article #1535

How to set font from actual device

#1535
From: Jakub
Date: Sat, 05 Dec 2026 12:52
22 lines
1433 bytes
I have this fun to get list of fonts at device:

fun getFontFamiliList(): ArrayList<String> {
         val zfontListArray = ArrayList<String>()
         val zpath = "/system/fonts"
         val zfile = File(zpath)
         val zfontList = zfile.listFiles()

         if ( !zfontList.isNullOrEmpty() )  {
             for ( i in 0 until zfontList.size ) {
      	      zfontListArray.add(zfontList[i].name)
             }
         }

         return zfontListArray
     }


How to set font at textview one font from this list?

Thanks for answer
Technical Details
Message-ID: <11f11da$33r4$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: Jakub <jak74@interia.pl>
Newsgroups: comp.mobile.android
Subject: How to set font from actual device
Date: Sat, 5 Dec 2026 13:52:10 +0100
Organization: bofh.team Usenet service
Message-ID: <11f11da$33r4$1@paganini.bofh.team>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 5 Dec 2026 12:51:54 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="102244"; mail-complaints-to="usenet@bofh.team"; posting-host="c51f9d808a7facf3dbd4bd2067c01659"; posting-account="69e66f1681224ab92235b464ce7a90b6"
User-Agent: Mozilla Thunderbird
Content-Language: pl
X-Postfilter: Postfilter-NG 2026.10.2