Followed a similar route as jessexknight:
- created a .sty with
Tikz
drawing
- encapsulated said icon with
adjustbox
Kindly see my PS2 at the end.
tikzPECicon.sty
\tikzset{
env/.style={rounded corners=6pt,
fill=orange!50!yellow!100},
opn/.style={rounded corners, line width=3pt},
sll/.style={draw=black,fill=orange!50!yellow!100,
line width=3pt},
txt/.style={anchor=south west,text=white,
font={\sffamily\Huge},
scale=2},
dot/.style={circle, inner sep=8pt,
draw=black, fill=black},
PEC/.pic={
% ~~~ background ~~~~~~~~~~~~~~~~~~~~~~~
\draw[fill=black] (0,0) rectangle (10,4.4);
% ~~~ envelope ~~~~~~~~~~~~~~~~
\draw[env] (0.9,1 ) rectangle (4.2,3.4);
\draw[opn] (0.9,2.8) -- (2.6,1.7) -- (4.3,2.8);
% ~~~ seal ~~~~~~~~
\draw[sll] (3.6,1.4) coordinate (A)
arc[start angle=250,
end angle=-70,
radius=8mm]
-- ++( 0, -.6) -- ++(-.25,+.2)
-- ++(-.25,-.2) -- cycle;
\node [dot] at ([shift=(70:.8)]A) {};
% ~~~ text ~~~~~~~~~~~
\node[txt] at (5.2,1.5) {PEC};
},
}
- started with drawings and
.style
definitions
- obtained coordinates from the
px
by 10 values in bitmap editor Paint ... that's why some scaling results (too lazy to use my calculator)
- finally moved the drawings into a
\pic
called PEC
- colors, line widths etc. can, and need to, be adjusted
- however, I think the black background comes from copying the bitmap, and can be dropped
- font can be adjusted
main.tex
Use is simple and relies on the powerful adjustbox
package. However, you can see the problem with icon-design in general:
- you can judge the result only from its final use, here in the text body.
On the other hand ... it's still a vector graphic.
\documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\usepackage{tikzPECicon}
\usepackage{adjustbox}
\usepackage{lipsum}
\newcommand\pec[0]{\adjustbox{height=7pt}{\tikz{\pic {PEC};} }}
\begin{document}
Some text to start with \pec. \lipsum[2][1]
\end{document}

P.S.: About icon design
A little research using search term icon design does and donts
.
Do you remember the time when GPS-navigation was introduced into the markets? People were so happy about it that many stopped thinking, relying on the trustworthy voice ... ending up with their cars in canals and other waters ...
A similar caution has to be practiced with AI nowadays, though this summary sounds convincing enough (and has links), which may and will differ in your run (generative AI with noise as starting condition using the '''learned''' LLM as corrective means), and they address the situation when you start from scratch :
Googles AI summary
Effective icon design relies on clarity, simplicity, and consistency. Icons should be easily recognizable and communicate a clear message, avoiding unnecessary complexity or confusing symbolism. Consistency in style and meaning across an icon set is crucial for usability.
Do's:
- Keep it simple: Use clear, recognizable shapes and symbols that are easily understood.
- Focus on clarity: Ensure the icon's meaning is obvious at a glance, even at small sizes.
- Maintain consistency: Use the same style, line thickness, and color palette throughout an icon set.
- Consider context: Think about where the icon will be used and how it will be perceived.
- Test your icons: Ensure they are easily understood and function as intended, especially at different sizes.
Don'ts:
- Overcomplicate: Avoid excessive details or unnecessary elements.
- Use ambiguous symbols: Choose symbols with clear, widely understood meanings.
- Rely on text: Don't use text within the icon itself, as it can be confusing at small sizes.
- Confuse users: Avoid using icons with overlapping meanings within the same interface.
- Overuse icons: Sometimes, text or other design elements might be a better choice than an icon.
- Over-customize: While uniqueness is good, don't make icons so unique they lose their meaning.
Some links followed by me
Taking icon clarification and projetmbc's remarks into account:
main2.tex
\documentclass[10pt,a4paper]{article}
\usepackage{tikz}
\usepackage{tikzPECicon2}
\usepackage{adjustbox}
\usepackage{lipsum}
\newcommand\pec[0]{\adjustbox{height=1.8ex}{\tikz{\pic {PEC};} }}
\begin{document}
Some text to start with \pec. \lipsum[2][1]
\end{document}
tikzPECicon2.sty:
\tikzset{
env/.style={rounded corners=6pt,
fill=orange!50!yellow!100},
opn/.style={rounded corners, line width=3pt},
sll/.style={draw=black,fill=orange!50!yellow!100,
line width=3pt},
txt/.style={anchor=south west,text=white,
font={\sffamily\Huge},
scale=2},
dot/.style={circle, inner sep=8pt,
draw=black, fill=black},
PEC/.pic={
% ~~~ background ~~~~~~~~~~~~~~~~~~~~~~~
% \draw[fill=black] (0,0) rectangle (10,4.4);
% ~~~ envelope ~~~~~~~~~~~~~~~~
\draw[env] (0.9,1 ) rectangle (4.2,3.4);
\draw[opn] (0.9,2.8) -- (2.6,1.7) -- (4.3,2.8);
% ~~~ seal ~~~~~~~~
\draw[sll] (3.6,1.4) coordinate (A)
arc[start angle=250,
end angle=-70,
radius=8mm]
-- ++( 0, -.6) -- ++(-.25,+.2)
-- ++(-.25,-.2) -- cycle;
\node [dot] at ([shift=(70:.8)]A) {};
% ~~~ text ~~~~~~~~~~~
% \node[txt] at (5.2,1.5) {PEC};
},
}

albatross
to find which fonts on your system have it.