Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Content Layer
namePage Info
id278129461
classwatermark-layer
Content Column
namePage Body
width100.00001%
id278129463
Content Block
background-colortransparent
namePrompt
id494677873
classtight manual-prompt-flex

wordsIncluding licensed font files in your theme.

Content Block
nameOutcome
rich-link-hoverstrue
id1042866408
classtight manual-outcome-flex

Replace me with a more complete explanation of what this how-to accomplishesYou may have a set of font files licensed for your organization for web use. In order to add them to your theme's font families, you must first add them to your theme.

Content Block
nameSteps
rich-link-hoverstrue
id494842117
classsteps-block numbered manual-steps-flex tight-bottom

Add the font files to your Confluence home directory.

To complete this step, you must have access to the server/computer on which Confluence was installed. You should have your set of purchased font files accessible.

  • From your Confluence home directory navigate to brikit/themes.

  • Select the folder that matches the appropriate theme.
  • If not already there, add a fonts folder.
  • Within the fonts folder, add your font files:
    • .eot
    • .svg
    • .ttf
    • .woff
    • .woff2

Add custom supporting CSS to your Theme.

Your packaged web-font files will contain key information needed to create a CSS file, including:

  • font-family name
  • font key
    • The name of your font file (minus the extension) is the font's key.
  • font style
  • font weight
  • font ID
    • You can find the font ID in the .svg file.

Once you have located the key information, add a CSS file named embedded-fonts.css with the following format for each font:

copied over: 

When defining font families, use the following format. Be sure to use highly readable fonts that render well in all browsers.

Theme Press Control Panel > Theme Tab > Content > Fonts > Choices > Font Families

Image Removed

Code Block
languagecss
themeConfluence
titleFormat
fontFamily1: #embeddedFontFace("<font-family name 1>name>", "<font name 2>key>", "<font name 3>";
fontFamily2:style>" "<font name 1>weight>", "<font name 2>", "<font name 3>";
Code Block
languagecss
titleExample
fontFamily1: "Helvetica Neue", Helvetica, Arial, sans-serif;
fontFamily2: Georgia, Times, "Times New Roman", serif; 

Font names with one word do not need quotes. 

You can add additional families as needed.

Use h4 for section headings

If you don't want numbers in the section headings, simply remove the "numbered" class from this block.

Note/Tip/Warning/Info blocks below are collapsed by default. If you want to use any of these, try to keep to just one per page. You may use two if necessary, but in general, try to limit these.

id>")


Example

#embeddedFontFace("Graphik Bold Web" "Graphik-Bold-Web" "normal" "bold" "Graphik-Bold-Web")

HTML Wrap
classdocs-screenshot

Image Added

Content Block
nameNote
rich-link-hoverstrue
id495965127
classmanual-note-flexcollapsiblecollapse
Note

If using:

  • Replace me with something to note about this how-to entry that falls outside the scope of all other sections; and
  • Add the tight-bottom class to the Steps block above to narrow the gap between the two blocks

    Theme Press does not accept OpenType Font (.otf) files, so we recommend converting these to one of the above-mentioned font formats, specifically .ttf, .woff or .woff2.

    Content Block
    nameTip
    rich-link-hoverstrue
    id894522670
    classmanual-tip-flex
    collapsiblecollapse
    Tip

    If using:

    1. Replace me with something to note about this how-to entry that falls outside the scope of all other sections; and
    2. Add the tight-bottom class to the next visible/non-collapsed block above this one to narrow the gap between the two blocks.
    Content Block
    nameWarning
    rich-link-hoverstrue
    id894530759
    classmanual-warning-flex
    collapsiblecollapse
    Warning

    If using:

    1. Replace me with something to note about this how-to entry that falls outside the scope of all other sections; and
    2. Add the tight-bottom class to the next visible/non-collapsed block above this one to narrow the gap between the two blocks.
    Content Block
    nameInfo
    rich-link-hoverstrue
    id894537203
    classmanual-info-flex
    collapsiblecollapse
    Info

    If using:

    1. Replace me with something to note about this how-to entry that falls outside the scope of all other sections; and
    2. Add the tight-bottom class to the next visible/non-collapsed block above this one to narrow the gap between the two blocks.
    Content Layer
    background-color$lightGrayColor
    nameRelated
    id888168050
    Content Column
    nameRelated
    width100%
    id888168051
    Content Block
    rich-links-hide-descriptiontrue
    rich-link-hoverstrue
    rich-links-columns4
    rich-links-verticaltrue
    rich-links-image-height100px
    rich-links-hide-site-icontrue
    rich-links-details-padding10px
    nameRelated
    rich-links-enabletrue
    border-width0
    rich-links-details-alignmentleft
    rich-links-margin20px 30px 0 0
    id496234544
    classrelated-block clean manual-related-flex