draw the container box of a glyph

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
1












I'm doing a practical job and I need to place the glyphs of some typographies inside the box that contains them.
I do not mean a box in common, but the box that contains the glyph and allows you to see its position inside the box.
There is some direct function to obtain it or it is necessary to use other tools.










share|improve this question





















  • Depending on the precision you need, fbox<stuff> does the job. You can use setlengthfboxsep0pt prior to that to tighten the box around <stuff>.
    – Phelype Oleinik
    1 hour ago














up vote
4
down vote

favorite
1












I'm doing a practical job and I need to place the glyphs of some typographies inside the box that contains them.
I do not mean a box in common, but the box that contains the glyph and allows you to see its position inside the box.
There is some direct function to obtain it or it is necessary to use other tools.










share|improve this question





















  • Depending on the precision you need, fbox<stuff> does the job. You can use setlengthfboxsep0pt prior to that to tighten the box around <stuff>.
    – Phelype Oleinik
    1 hour ago












up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





I'm doing a practical job and I need to place the glyphs of some typographies inside the box that contains them.
I do not mean a box in common, but the box that contains the glyph and allows you to see its position inside the box.
There is some direct function to obtain it or it is necessary to use other tools.










share|improve this question













I'm doing a practical job and I need to place the glyphs of some typographies inside the box that contains them.
I do not mean a box in common, but the box that contains the glyph and allows you to see its position inside the box.
There is some direct function to obtain it or it is necessary to use other tools.







boxes






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 1 hour ago









Imago Mundi

463




463











  • Depending on the precision you need, fbox<stuff> does the job. You can use setlengthfboxsep0pt prior to that to tighten the box around <stuff>.
    – Phelype Oleinik
    1 hour ago
















  • Depending on the precision you need, fbox<stuff> does the job. You can use setlengthfboxsep0pt prior to that to tighten the box around <stuff>.
    – Phelype Oleinik
    1 hour ago















Depending on the precision you need, fbox<stuff> does the job. You can use setlengthfboxsep0pt prior to that to tighten the box around <stuff>.
– Phelype Oleinik
1 hour ago




Depending on the precision you need, fbox<stuff> does the job. You can use setlengthfboxsep0pt prior to that to tighten the box around <stuff>.
– Phelype Oleinik
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
5
down vote













Here's a way, that also shows the baseline:



documentclassarticle

newlengthglyphwd
newcommandshowglyph[1]%
begingroup
settowidthglyphwd#1%
setlengthfboxrule0.1pt% hairline
setlengthfboxsep-0.05pt%
makebox[0pt][l]vrule height 0.05pt depth 0.05pt width glyphwd%
fbox#1%
endgroup


begindocument

showglyphQ showglyphLARGE g showglyphLARGEitshape f

enddocument


enter image description here






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "85"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453458%2fdraw-the-container-box-of-a-glyph%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    5
    down vote













    Here's a way, that also shows the baseline:



    documentclassarticle

    newlengthglyphwd
    newcommandshowglyph[1]%
    begingroup
    settowidthglyphwd#1%
    setlengthfboxrule0.1pt% hairline
    setlengthfboxsep-0.05pt%
    makebox[0pt][l]vrule height 0.05pt depth 0.05pt width glyphwd%
    fbox#1%
    endgroup


    begindocument

    showglyphQ showglyphLARGE g showglyphLARGEitshape f

    enddocument


    enter image description here






    share|improve this answer
























      up vote
      5
      down vote













      Here's a way, that also shows the baseline:



      documentclassarticle

      newlengthglyphwd
      newcommandshowglyph[1]%
      begingroup
      settowidthglyphwd#1%
      setlengthfboxrule0.1pt% hairline
      setlengthfboxsep-0.05pt%
      makebox[0pt][l]vrule height 0.05pt depth 0.05pt width glyphwd%
      fbox#1%
      endgroup


      begindocument

      showglyphQ showglyphLARGE g showglyphLARGEitshape f

      enddocument


      enter image description here






      share|improve this answer






















        up vote
        5
        down vote










        up vote
        5
        down vote









        Here's a way, that also shows the baseline:



        documentclassarticle

        newlengthglyphwd
        newcommandshowglyph[1]%
        begingroup
        settowidthglyphwd#1%
        setlengthfboxrule0.1pt% hairline
        setlengthfboxsep-0.05pt%
        makebox[0pt][l]vrule height 0.05pt depth 0.05pt width glyphwd%
        fbox#1%
        endgroup


        begindocument

        showglyphQ showglyphLARGE g showglyphLARGEitshape f

        enddocument


        enter image description here






        share|improve this answer












        Here's a way, that also shows the baseline:



        documentclassarticle

        newlengthglyphwd
        newcommandshowglyph[1]%
        begingroup
        settowidthglyphwd#1%
        setlengthfboxrule0.1pt% hairline
        setlengthfboxsep-0.05pt%
        makebox[0pt][l]vrule height 0.05pt depth 0.05pt width glyphwd%
        fbox#1%
        endgroup


        begindocument

        showglyphQ showglyphLARGE g showglyphLARGEitshape f

        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        egreg

        686k8418283078




        686k8418283078



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453458%2fdraw-the-container-box-of-a-glyph%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            Confectionery