MetaFont: character dimension of unchanged glyphs change when adding new glyphs?Sample Metafont source for...

Can I solder 12/2 Romex to extend wire 5 ft?

A bug in Excel? Conditional formatting for marking duplicates also highlights unique value

When to use mean vs median

Lock enemy's y-axis when using Vector3.MoveTowards to follow the player

Book about a time-travel war fought by computers

How can I handle a player who pre-plans arguments about my rulings on RAW?

Sometimes a banana is just a banana

Quitting employee has privileged access to critical information

Is there a full canon version of Tyrion's jackass/honeycomb joke?

Should I use HTTPS on a domain that will only be used for redirection?

How do I deal with being envious of my own players?

“I had a flat in the centre of town, but I didn’t like living there, so …”

How do you say “my friend is throwing a party, do you wanna come?” in german

How can neutral atoms have exactly zero electric field when there is a difference in the positions of the charges?

Are there other characters in the Star Wars universe who had damaged bodies and needed to wear an outfit like Darth Vader?

What could be a means to defeat a childrens’ nightmare?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

Rationale to prefer local variables over instance variables?

Deal the cards to the players

Make me a metasequence

How to disable or uninstall iTunes under High Sierra without disabling SIP

Can we carry rice to Japan?

Why won't the strings command stop?

Understanding the template



MetaFont: character dimension of unchanged glyphs change when adding new glyphs?


Sample Metafont source for one characterFinding METAFONT sources of a specific characterchange default metafont's mode/resolution (as when called directly from pdflatex)metafont crashes when using showitWhat to do to make Metafont stop emitting “! Emergency stop.” when i type relax













1















I have a very strange effect while debugging yhmath math fonts items. I am generating cmex10.tfm from cmex10.mf, and convert the tfm to pl file.



Then I rename only rename the driver file to yrcmex10.mf, and add the following new glyph definitions in bigdel.mf, without changing anything in the rest of the files:



cmchar "big left parenthesis";
beginchar(oct"200",8u#,rule_thickness#,2.5dh#-rule_thickness#);
adjust_fit(1.75u#,-.25u#); left_paren(hair,stem); endchar;

cmchar "big left parenthesis";
beginchar(oct"201",10u#,rule_thickness#,3.5dh#-rule_thickness#);
adjust_fit(2.25u#,-.25u#); left_paren(hair,stem); endchar;


cmchar "big left parenthesis";
beginchar(oct"202",12u#,rule_thickness#,4.5dh#-rule_thickness#);
adjust_fit(2.75u#,-.25u#); left_paren(hair,stem); endchar;

cmchar "big left parenthesis";
beginchar(oct"203",13u#,rule_thickness#,5dh#-rule_thickness#);
adjust_fit(3u#,-.25u#); left_paren(hair,stem); endchar;


cmchar "big left parenthesis";
beginchar(oct"204",15u#,rule_thickness#,6dh#-rule_thickness#);
adjust_fit(3.5u#,-.25u#); left_paren(hair,stem); endchar;

cmchar "big left parenthesis";
beginchar(oct"205",17u#,rule_thickness#,7dh#-rule_thickness#);
adjust_fit(4u#,-.25u#); left_paren(hair,stem); endchar;

cmchar "big left parenthesis";
beginchar(oct"206",19u#,rule_thickness#,8dh#-rule_thickness#);
adjust_fit(4.5u#,-.25u#); left_paren(hair,stem); endchar;


So the only diff between the cmex10 font and yrcmex10 font is the addition of the above characters.



Converting both tfm to pl, and making a diff I see changes in unrelated glpyphs, in particular the DP parameter changes:



--- cmex10.pl   2019-03-07 09:30:01.263513678 +0900
+++ yrcmex10.pl 2019-03-07 09:52:25.578670436 +0900
@@ -1,7 +1,7 @@
(DESIGNSIZE R 10.0)
(COMMENT DESIGNSIZE IS IN POINTS)
(COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
-(CHECKSUM O 37254272422)
+(CHECKSUM O 35311171576)
(FONTDIMEN
(SLANT R 0.0)
(SPACE R 0.0)
@@ -20,85 +20,85 @@
(CHARACTER O 0
(CHARWD R 0.458336)
(CHARHT R 0.039999)
- (CHARDP R 1.160013)
+ (CHARDP R 1.135567)
(NEXTLARGER O 20)
)
(CHARACTER O 1
(CHARWD R 0.458336)
(CHARHT R 0.039999)
- (CHARDP R 1.160013)
+ (CHARDP R 1.135567)
(NEXTLARGER O 21)
)
...


This is very surprising, I would have guessed that the glyph dimensions of other non-changed glphs do not change. Furthermore, this changes become bigger the more additional glyphs I add.



Anyone having an explanation for this?









share



























    1















    I have a very strange effect while debugging yhmath math fonts items. I am generating cmex10.tfm from cmex10.mf, and convert the tfm to pl file.



    Then I rename only rename the driver file to yrcmex10.mf, and add the following new glyph definitions in bigdel.mf, without changing anything in the rest of the files:



    cmchar "big left parenthesis";
    beginchar(oct"200",8u#,rule_thickness#,2.5dh#-rule_thickness#);
    adjust_fit(1.75u#,-.25u#); left_paren(hair,stem); endchar;

    cmchar "big left parenthesis";
    beginchar(oct"201",10u#,rule_thickness#,3.5dh#-rule_thickness#);
    adjust_fit(2.25u#,-.25u#); left_paren(hair,stem); endchar;


    cmchar "big left parenthesis";
    beginchar(oct"202",12u#,rule_thickness#,4.5dh#-rule_thickness#);
    adjust_fit(2.75u#,-.25u#); left_paren(hair,stem); endchar;

    cmchar "big left parenthesis";
    beginchar(oct"203",13u#,rule_thickness#,5dh#-rule_thickness#);
    adjust_fit(3u#,-.25u#); left_paren(hair,stem); endchar;


    cmchar "big left parenthesis";
    beginchar(oct"204",15u#,rule_thickness#,6dh#-rule_thickness#);
    adjust_fit(3.5u#,-.25u#); left_paren(hair,stem); endchar;

    cmchar "big left parenthesis";
    beginchar(oct"205",17u#,rule_thickness#,7dh#-rule_thickness#);
    adjust_fit(4u#,-.25u#); left_paren(hair,stem); endchar;

    cmchar "big left parenthesis";
    beginchar(oct"206",19u#,rule_thickness#,8dh#-rule_thickness#);
    adjust_fit(4.5u#,-.25u#); left_paren(hair,stem); endchar;


    So the only diff between the cmex10 font and yrcmex10 font is the addition of the above characters.



    Converting both tfm to pl, and making a diff I see changes in unrelated glpyphs, in particular the DP parameter changes:



    --- cmex10.pl   2019-03-07 09:30:01.263513678 +0900
    +++ yrcmex10.pl 2019-03-07 09:52:25.578670436 +0900
    @@ -1,7 +1,7 @@
    (DESIGNSIZE R 10.0)
    (COMMENT DESIGNSIZE IS IN POINTS)
    (COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
    -(CHECKSUM O 37254272422)
    +(CHECKSUM O 35311171576)
    (FONTDIMEN
    (SLANT R 0.0)
    (SPACE R 0.0)
    @@ -20,85 +20,85 @@
    (CHARACTER O 0
    (CHARWD R 0.458336)
    (CHARHT R 0.039999)
    - (CHARDP R 1.160013)
    + (CHARDP R 1.135567)
    (NEXTLARGER O 20)
    )
    (CHARACTER O 1
    (CHARWD R 0.458336)
    (CHARHT R 0.039999)
    - (CHARDP R 1.160013)
    + (CHARDP R 1.135567)
    (NEXTLARGER O 21)
    )
    ...


    This is very surprising, I would have guessed that the glyph dimensions of other non-changed glphs do not change. Furthermore, this changes become bigger the more additional glyphs I add.



    Anyone having an explanation for this?









    share

























      1












      1








      1








      I have a very strange effect while debugging yhmath math fonts items. I am generating cmex10.tfm from cmex10.mf, and convert the tfm to pl file.



      Then I rename only rename the driver file to yrcmex10.mf, and add the following new glyph definitions in bigdel.mf, without changing anything in the rest of the files:



      cmchar "big left parenthesis";
      beginchar(oct"200",8u#,rule_thickness#,2.5dh#-rule_thickness#);
      adjust_fit(1.75u#,-.25u#); left_paren(hair,stem); endchar;

      cmchar "big left parenthesis";
      beginchar(oct"201",10u#,rule_thickness#,3.5dh#-rule_thickness#);
      adjust_fit(2.25u#,-.25u#); left_paren(hair,stem); endchar;


      cmchar "big left parenthesis";
      beginchar(oct"202",12u#,rule_thickness#,4.5dh#-rule_thickness#);
      adjust_fit(2.75u#,-.25u#); left_paren(hair,stem); endchar;

      cmchar "big left parenthesis";
      beginchar(oct"203",13u#,rule_thickness#,5dh#-rule_thickness#);
      adjust_fit(3u#,-.25u#); left_paren(hair,stem); endchar;


      cmchar "big left parenthesis";
      beginchar(oct"204",15u#,rule_thickness#,6dh#-rule_thickness#);
      adjust_fit(3.5u#,-.25u#); left_paren(hair,stem); endchar;

      cmchar "big left parenthesis";
      beginchar(oct"205",17u#,rule_thickness#,7dh#-rule_thickness#);
      adjust_fit(4u#,-.25u#); left_paren(hair,stem); endchar;

      cmchar "big left parenthesis";
      beginchar(oct"206",19u#,rule_thickness#,8dh#-rule_thickness#);
      adjust_fit(4.5u#,-.25u#); left_paren(hair,stem); endchar;


      So the only diff between the cmex10 font and yrcmex10 font is the addition of the above characters.



      Converting both tfm to pl, and making a diff I see changes in unrelated glpyphs, in particular the DP parameter changes:



      --- cmex10.pl   2019-03-07 09:30:01.263513678 +0900
      +++ yrcmex10.pl 2019-03-07 09:52:25.578670436 +0900
      @@ -1,7 +1,7 @@
      (DESIGNSIZE R 10.0)
      (COMMENT DESIGNSIZE IS IN POINTS)
      (COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
      -(CHECKSUM O 37254272422)
      +(CHECKSUM O 35311171576)
      (FONTDIMEN
      (SLANT R 0.0)
      (SPACE R 0.0)
      @@ -20,85 +20,85 @@
      (CHARACTER O 0
      (CHARWD R 0.458336)
      (CHARHT R 0.039999)
      - (CHARDP R 1.160013)
      + (CHARDP R 1.135567)
      (NEXTLARGER O 20)
      )
      (CHARACTER O 1
      (CHARWD R 0.458336)
      (CHARHT R 0.039999)
      - (CHARDP R 1.160013)
      + (CHARDP R 1.135567)
      (NEXTLARGER O 21)
      )
      ...


      This is very surprising, I would have guessed that the glyph dimensions of other non-changed glphs do not change. Furthermore, this changes become bigger the more additional glyphs I add.



      Anyone having an explanation for this?









      share














      I have a very strange effect while debugging yhmath math fonts items. I am generating cmex10.tfm from cmex10.mf, and convert the tfm to pl file.



      Then I rename only rename the driver file to yrcmex10.mf, and add the following new glyph definitions in bigdel.mf, without changing anything in the rest of the files:



      cmchar "big left parenthesis";
      beginchar(oct"200",8u#,rule_thickness#,2.5dh#-rule_thickness#);
      adjust_fit(1.75u#,-.25u#); left_paren(hair,stem); endchar;

      cmchar "big left parenthesis";
      beginchar(oct"201",10u#,rule_thickness#,3.5dh#-rule_thickness#);
      adjust_fit(2.25u#,-.25u#); left_paren(hair,stem); endchar;


      cmchar "big left parenthesis";
      beginchar(oct"202",12u#,rule_thickness#,4.5dh#-rule_thickness#);
      adjust_fit(2.75u#,-.25u#); left_paren(hair,stem); endchar;

      cmchar "big left parenthesis";
      beginchar(oct"203",13u#,rule_thickness#,5dh#-rule_thickness#);
      adjust_fit(3u#,-.25u#); left_paren(hair,stem); endchar;


      cmchar "big left parenthesis";
      beginchar(oct"204",15u#,rule_thickness#,6dh#-rule_thickness#);
      adjust_fit(3.5u#,-.25u#); left_paren(hair,stem); endchar;

      cmchar "big left parenthesis";
      beginchar(oct"205",17u#,rule_thickness#,7dh#-rule_thickness#);
      adjust_fit(4u#,-.25u#); left_paren(hair,stem); endchar;

      cmchar "big left parenthesis";
      beginchar(oct"206",19u#,rule_thickness#,8dh#-rule_thickness#);
      adjust_fit(4.5u#,-.25u#); left_paren(hair,stem); endchar;


      So the only diff between the cmex10 font and yrcmex10 font is the addition of the above characters.



      Converting both tfm to pl, and making a diff I see changes in unrelated glpyphs, in particular the DP parameter changes:



      --- cmex10.pl   2019-03-07 09:30:01.263513678 +0900
      +++ yrcmex10.pl 2019-03-07 09:52:25.578670436 +0900
      @@ -1,7 +1,7 @@
      (DESIGNSIZE R 10.0)
      (COMMENT DESIGNSIZE IS IN POINTS)
      (COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
      -(CHECKSUM O 37254272422)
      +(CHECKSUM O 35311171576)
      (FONTDIMEN
      (SLANT R 0.0)
      (SPACE R 0.0)
      @@ -20,85 +20,85 @@
      (CHARACTER O 0
      (CHARWD R 0.458336)
      (CHARHT R 0.039999)
      - (CHARDP R 1.160013)
      + (CHARDP R 1.135567)
      (NEXTLARGER O 20)
      )
      (CHARACTER O 1
      (CHARWD R 0.458336)
      (CHARHT R 0.039999)
      - (CHARDP R 1.160013)
      + (CHARDP R 1.135567)
      (NEXTLARGER O 21)
      )
      ...


      This is very surprising, I would have guessed that the glyph dimensions of other non-changed glphs do not change. Furthermore, this changes become bigger the more additional glyphs I add.



      Anyone having an explanation for this?







      metafont





      share












      share










      share



      share










      asked 8 mins ago









      norbertnorbert

      6,5201332




      6,5201332






















          0






          active

          oldest

          votes











          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          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%2f478127%2fmetafont-character-dimension-of-unchanged-glyphs-change-when-adding-new-glyphs%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478127%2fmetafont-character-dimension-of-unchanged-glyphs-change-when-adding-new-glyphs%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

          Schneeberg (Smreczany) Bibliografia | Menu...

          Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...