WikiStyleExamples-Talk

I am wanting to use a different font in some cells of a complex table I have built using Table Directives. I see no examples anywhere where fonts are changed or set and have tried a number of options all to no avail. Can someone point me in the right direction please. 9/09/2021 R Storm

The simplest is to use the "style" attribute in table cells, see below:

(:table border=1:)
(:cellnr:) Default
(:cell style="font-family: Courier;":)
Specific font Courier
(:cellnr:) Default
(:cell style="font-family: Comic Sans MS; font-size: 200%;":)
Specific font Comic
(:cellnr:) Default
(:cell style="font-family: Arial;":)
Specific font Arial
(:cellnr:) Default
(:cell style="font-family: Verdana;":)
Specific font Verdana
(:cellnr:) Default
(:cell style="font-family: Georgia;":)
Specific font Georgia
(:cellnr:) Default
(:cell style="font-family: Ubuntu;":)
Specific font Ubuntu
(:cellnr:) Default
(:cell style="font-family: Roboto;":)
Specific font Roboto
(:cellnr:) Default
(:cell style="font-family: Raleway;":)
Specific font Raleway
(:cellnr:) Default
(:cell style="font-family: Futura;":)
Specific font Futura
(:tableend:)
Default

Specific font Courier

Default

Specific font Comic

Default

Specific font Arial

Default

Specific font Verdana

Default

Specific font Georgia

Default

Specific font Ubuntu

Default

Specific font Roboto

Default

Specific font Raleway

Default

Specific font Futura

Easiest in the long run, but requiring learning, would be to define CSS classes with fonts, colors and sizes in your file pub/css/local.css and use only the class names then in the class="..." attribute in the table cells, as in (:cell class="myfont":).

Also, you should restrict yourself to fonts that are common to most computers, otherwise the browsers will show the default fonts. It is possible that some of the fonts in the above example are missing from your computer. --Petko September 09, 2021, at 08:01 AM

Thanks for the quick and extensive response Petko. While my coding was slightly off, I still have no luck, so have come to the conclusion that is must be something with the font I want to use which is Microsoft Dingbats 3. I can get other fonts to display but I wanted to use 4 of the arrow symbols out of this font set. It is not a critical part of what I want to show so I might just leave it till I can get my head around CSS, then perhaps give it another go. R Storm

I am in this case and I started using Wikipedia:Emoji which are colorful and interesting to people, although they may appear slightly different on different systems (the wiki probably must have UTF-8 enabled). I use a search engine at https://emojipedia.org/ then copy and paste. As an alternative, see Cookbook:FontAwesome where the icons are all monochrome (in the text color) and look the same for all systems --Petko September 10, 2021, at 04:56 AM

This is a talk page for improving PmWiki.WikiStyleExamples.