# How to clip and draw a picture approximately?

\documentclass[border=10pt]{standalone}
\usepackage{mathptmx}
\begin{document}
\begin{pspicture}[showgrid](-5,-5)(10,5)
\psframe*[fillstyle=solid,opacity=.5](-5,-5)(10,5)
\psset{PointName=none,PointSymbol=none,linewidth=4.5pt,linejoin=2}
\pnodes(5;100){A}(5;160){B}(5;-55){C}(0,0){O}
\pstCGravABC{A}{B}{C}{G}
\pstTriangleIC[linestyle=none]{A}{B}{C}
\pstBissectBAC[linestyle=none]{B}{A}{C}{A'}
\pstBissectBAC[linestyle=none]{A}{C}{B}{C'}
\pstInterLL[PointSymbol=square]{A}{A'}{C}{C'}{I}
\pstMiddleAB{B}{C}{M}
\pstInterLL{A}{I}{M}{O}{E}
\psline[linecolor=red!50](O)(E)(A)(M)
\cnodeput[linestyle=none,fillstyle=solid,fillcolor=red!50](IC_O){I'}{\textbf{I}}
\cnodeput[linestyle=none,fillstyle=solid,fillcolor=red!50](G){G'}{\textbf{G}}
\cnodeput[linestyle=none,fillstyle=solid,fillcolor=red!50](O){O'}{\textbf{O}}
%%%
\definecolor{ColorM}{hsb}{0.99999, 1, 1}
\definecolor{ColorN}{hsb}{0, 0, 1}
\pscircle(0,0){5}
%%%%
\DeclareFixedFont{\RM}{T1}{ptm}{b}{n}{1.7cm}
\begin{pscharclip}[linewidth=0.1pt]{%
\rput(3.25,2.75){\RM Iranian}}%      (3.25,2.75)!?
\end{pscharclip}
\begin{pscharclip}[linewidth=0.1pt]{%
\rput(4.5,1.2){\RM Geometry}}%       (4.5,1.2)!?
\end{pscharclip}
\begin{pscharclip}[linewidth=0.1pt]{%
\end{pscharclip}
\end{pspicture}
\end{document}


The official image:

https://igo-official.ir/static/intro/images/logo.png

Question:

1. The gradient can be used for line ?
2. As the image ouput, I see the circle of I is smaller than G and O? How to fix?
3. See !? in the image output, how to delete the extra white space?
4. How to clip the part of content inside circle (I tried but it is failed.) and arrange it evenly?(See the official image)
5. I don't have the knowledge about font, so can anyone tell me know?

(Yes, not drawing exactly, only need approximately)

\documentclass{standalone}
\usepackage{mathptmx}
\DeclareFixedFont{\RM}{T1}{ptm}{b}{n}{1.7cm}%
\begin{document}
\begin{pspicture}[showgrid=false](-5.2,-5.2)(10,5.2)
\psframe*[fillstyle=solid,linecolor=black!40,opacity=.9](-5.2,-5.2)(10,5.2)
\pscircle*[dimen=inner](0,0){5}
{%
\psset{fillstyle=solid,fillcolor=black!15,linecolor=black!15}%
\rput[lb](0.5,-1){\begin{pscharclip}[linewidth=0.1pt]{%
\end{pscharclip}}%
}
\psset{PointName=none,PointSymbol=none,linewidth=4.5pt,linejoin=2}%
\pnodes(5;100){A}(5;160){B}(5;-55){C}(0,0){O}
\pstCGravABC{A}{B}{C}{G}%
\pstTriangleIC[linestyle=none]{A}{B}{C}
\pstBissectBAC[linestyle=none]{B}{A}{C}{A'}
\pstBissectBAC[linestyle=none]{A}{C}{B}{C'}
\pstInterLL[PointSymbol=square]{A}{A'}{C}{C'}{I}
\pstMiddleAB{B}{C}{M}
\pstInterLL{A}{I}{M}{O}{E}
\psline[linecolor=red!50](O)(E)(A)(M)
\cnodeput[linestyle=none,fillstyle=solid,fillcolor=red!50](IC_O){I'}{\textbf{I}}
\cnodeput[linestyle=none,fillstyle=solid,fillcolor=red!50](G){G'}{\textbf{G}}
\cnodeput[linestyle=none,fillstyle=solid,fillcolor=red!50](O){O'}{\textbf{O}}
%%%
\definecolor{ColorM}{hsb}{0.99999, 1, 1}%
\definecolor{ColorN}{hsb}{0, 0, 1}%
\psclip{\pscircle[dimen=inner,linestyle=none](0,0){5}}
\rput[lb](0.5,-1){\begin{pscharclip}[linewidth=0.1pt]{%
\end{pscharclip}}%
\pscircle[dimen=inner,linecolor=red!40,fillstyle=none](0,0){5}
\endpsclip
\end{pspicture}
\end{document}


\end{pscharclip} needs a % at the end. For the circle use dimen=inner. You can Times or Helvetica as font. The rest can be done by yourself ...

Why is the radius of I smaller:

\documentclass{article}
\usepackage{mathptmx}
\DeclareFixedFont{\RM}{T1}{ptm}{b}{n}{1.7cm}%
\newsavebox\CBox
\begin{document}
\begin {tabular}{llll}
& width & height & depth \\\hline
I \global\sbox\CBox{\RM I} & \the\wd\CBox & \the\ht\CBox & \the\dp\CBox\\

G \global\sbox\CBox{\RM G} & \the\wd\CBox & \the\ht\CBox & \the\dp\CBox\\

O \global\sbox\CBox{\RM O} & \the\wd\CBox & \the\ht\CBox & \the\dp\CBox\\
\end{tabular}
\end{document}


For I we need at least a diameter of 33,33 pt, but for G and O we need at least a diameter of 37,63 pt ...

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-node}
\begin{document}
\begin{pspicture}[showgrid=false](5,2)
\Cnodeput[radius=5mm](1,1){Left}{foo\vphantom{g}}% to get the same height

• tug.org/PSTricks/main.cgi?file=Examples/Colors/colors#contColor and for IGO use \vphantom{IGO}I, \vphantom{IGO}G, ... Then all radii are the same – user187802 Sep 14 '19 at 19:24
• I tried with \vphantom{IGO}I,\vphantom{IGO}G, but it is unchanged. You can check. See edited question. – user179355 Sep 16 '19 at 8:21
• my mistake: \vphantom doesn't work here. Use a node macro which allows to define a radius. – user187802 Sep 16 '19 at 8:23
• radius is also unchanged.... – user179355 Sep 16 '19 at 8:43
• Please to check radius macro for \cnodeput ... – user179355 Sep 18 '19 at 10:22