Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Results 1 to 3 of 3

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

  1. #1
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,363
    Thanks
    6,444
    Thanked 9,160 Times in 6,235 Posts

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

    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.

  2. #2
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,798
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    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.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  3. The Following User Says Thank You to birdman For This Useful Post:

    abu baniaz (01-11-15)

  4. #3
    Rob van der Does's Avatar
    Title
    ViX Beta Tester
    Join Date
    Apr 2010
    Location
    The Netherlands & France
    Posts
    36,262
    Thanks
    1,720
    Thanked 9,461 Times in 6,675 Posts
    In the py you should look for 'Class' followed by 'screen'.
    After that a screen shows, that should be available in the skin.

    Help asked via PM will be ignored.
    The forum is there for help and all will benefit from your questions.
    NO CARD SHARING TALK WILL BE TOLERATED, LAN OR WAN, IN OPEN FORUM OR PM !

    English is not my native tongue.
    I apologise for all my grammar, spelling and idiom errors.

  5. The Following User Says Thank You to Rob van der Does For This Useful Post:

    abu baniaz (01-11-15)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.