Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

How to specify font type/size for a section of screen

abu baniaz

Moderator
Joined
Sep 16, 2010
Messages
24,112
Reaction score
178
Points
63
Location
East London
How does one specify the font size/type for a particalar part of a screen?

The affected section is below:

Code:
    def createSetup(self):
        self.editListEntry = None
        self.list = []
        self.list.append(getConfigListEntry(_("Local Area Selection"), config.autobouquets.area,
            _("Select your region/area")))
        self.list.append(getConfigListEntry(_("Numbering System"), config.autobouquets.bouquetlist,
            _("SD: Channel numbers like a Sky SD box\nHD: Channel numbers like a Sky HD box")))
        self.list.append(getConfigListEntry(_("Scan Mode"), config.autobouquets.freetoair,
            _("Available HD = Skips unviewable HD channels\nFTA Only = Free channels only\nAll Channels = All channels")))
        self.list.append(getConfigListEntry(_("CPU Architecture Type"), config.autobouquets.architecture,
            _("Most common is Mips\nAmiko users should select SH4\nWetek users should select ARM")))
        self.list.append(getConfigListEntry(_("Bouquet Channel Sort"), config.autobouquets.sort,
            _("HD First = First bouquet contains HD channels\nLarge 1st bouquet = 1st one has all channels\nSort 3 = For users to customise contents")))
        self.list.append(getConfigListEntry(_("Print Channel Numbers"), config.autobouquets.numbered,
            _("Prints the official number next to channel name")))
        self.list.append(getConfigListEntry(_("Hide Adult/Gaming"), config.autobouquets.parental,
            _("This hides the Gaming and Adult bouquets")))
        self.list.append(getConfigListEntry(_("Channel Swap"), config.autobouquets.ordering,
            _("This is primarily to swap SD channels for their HD equivalent. There is no error checking\nRefer to custom_swap.txt for swaps")))
        self.list.append(getConfigListEntry(_("Make All Default Bouquets"), config.autobouquets.default,
            _("You should disable this if you want to move or delete bouquets")))
        self.list.append(getConfigListEntry(_("Other Extra Channels"), config.autobouquets.extra,
            _("This allows for test/out of region channels. They will be created in the Other bouquet\nSome services are not written to lamedb")))
        self.list.append(getConfigListEntry(_("Use Internal NIT Scan"), config.autobouquets.nitscan,
            _("Disabling this offers option to perform a conventional scan\nBest to leave it as it is!")))
        self.list.append(getConfigListEntry(_("Hide Blank Placeholders"), config.autobouquets.placeholder,
            _("Hides the blanks used to make official numbers\nNot all images support this")))
        self.list.append(getConfigListEntry(_("Enable Script Checks"), config.autobouquets.checkscript,
            _("Some images do not allow the scripts being used\nOnly disable this if you experience problems")))
        self.list.append(getConfigListEntry(_("Bouquet Display Style"), config.autobouquets.style,
            _("Choose your Bouquet Display Style")))
        self.list.append(getConfigListEntry(_("Create AutoPicon Links"), config.autobouquets.piconstyle,
            _("Do you want AB 28.2 to maintain the links to picons?\nOrdinary = conventional picons")))
        if config.autobouquets.piconstyle.value != '0':
            self.list.append(getConfigListEntry(_("Picon Link Location"), config.autobouquets.piconlink,
                _("Specify location for picon links\nLinks must be on an ext file system")))
            self.list.append(getConfigListEntry(_("Picon Folder Location"), config.autobouquets.piconfolder,
                _("Where are  picons located?\nIf using SNPs, this must be same as Link location.")))
        self.list.append(getConfigListEntry(_("Automatic Updates"), config.autobouquets.schedule,
            _("Do you want AB 28.2 to run automatically?")))
        if config.autobouquets.schedule.value:
            self.list.append(getConfigListEntry(_("Time of Update to start"), config.autobouquets.scheduletime,
                _("Specify time you want for automated AB 28.2 updates")))
            self.list.append(getConfigListEntry(_("Repeat how often"), config.autobouquets.repeattype,
                _("How often do you want AB 28.2 to run?")))
        self["config"].list = self.list
        self["config"].setList(self.list)

Many thanks in advance.
 
As far as I can tell that is just creating a list of items. That code isn't displaying anything (which is where a font would come in). Something else would be displaying it.
enigma2/lib/python/Components/EpgList.py has some code to change font names (i.e. typefaces) and sizes starting at line 165, but I have no idea how specific it is to the code in that area, or how skin-specific it is.
 
In the py you should look for 'Class' followed by 'screen'.
After that a screen shows, that should be available in the skin.
 

OpenViX Feeds Status

Back
Top