2

I'd like to embed some Font Awesome social media icons into a QGIS 3.16 layout, using the "HTML Frame" element ("Add HTML" tool).

How would I go about either:

  1. Embedding web references to the icons in the CSS portion of the element, or
  2. Adding a reference to a locally downloaded icon pack?

1 Answer 1

3
  1. Just add the CDN to the stylesheet.
  2. Use an image tag and set the src to the svg
<html>
<head>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
</head>
<body>
    <!-- via CDN -->
    <i class="fa-brands fa-github"></i>
    <!-- via local file -->
    <img width=30 height=30 src="sass.svg"/>
</body>
</html>

enter image description here

1
  • Worked perfect, thank you! Commented Apr 10, 2022 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.