Fontspec loads letter sizes, but not the letter shapesLuaLaTeX protrusion problem with Negative valueHow do I use TrueType Fonts with PDFTeX using otftotfm?fontspec for small caps and nocommon ligatures (actually, rawfeatures works, but not ligatures=NoCommon)How to suppress a “Rare” ligature that pre-empts a “Common” ligature for the same character pair?Scale font sizes – match text font (Comfortaa) and math fontTraining Tesseract with generated LaTeX files

Why are trash cans referred to as "zafacón" in Puerto Rico?

A word that means "blending into a community too much"

Getting UPS Power from One Room to Another

How to safely destroy (a large quantity of) valid checks?

Warning about needing "authorization" when booking ticket

Print lines between start & end pattern, but if end pattern does not exist, don't print

Longest bridge/tunnel that can be cycled over/through?

What is the color of artificial intelligence?

Why can my keyboard only digest 6 keypresses at a time?

Fermat's statement about the ancients: How serious was he?

Live action TV show where High school Kids go into the virtual world and have to clear levels

I have a problematic assistant manager, but I can't fire him

Is using 'echo' to display attacker-controlled data on the terminal dangerous?

Align equations within one column

How did old MS-DOS games utilize various graphic cards?

Teaching a class likely meant to inflate the GPA of student athletes

60s or 70s novel about Empire of Man making 1st contact with 1st discovered alien race

How is the excise border managed in Ireland?

What aircraft was used as Air Force One for the flight between Southampton and Shannon?

Active low-pass filters --- good to what frequencies?

Fixing obscure 8080 emulator bug?

Is it possible to fly backward if you have a 'really strong' headwind?

How to hide rifle during medieval town entrance inspection?

A map of non-pathological topology?



Fontspec loads letter sizes, but not the letter shapes


LuaLaTeX protrusion problem with Negative valueHow do I use TrueType Fonts with PDFTeX using otftotfm?fontspec for small caps and nocommon ligatures (actually, rawfeatures works, but not ligatures=NoCommon)How to suppress a “Rare” ligature that pre-empts a “Common” ligature for the same character pair?Scale font sizes – match text font (Comfortaa) and math fontTraining Tesseract with generated LaTeX files













5















I'm trying to use the fontspec package to use the P22 Hopper Edward font.



In all other software, this looks wonderful:



enter image description here



But while LaTeX throws no errors, the font looks wrong: the letter shapes aren't being used, but the letter sizes do seem to be.



Result image



MWE used to create this image:



documentclassarticle

usepackagefontspec
setmainfontHopper.ttf[Path=./fonts/,Ligatures=TeX]

begindocument

This text looks very weird and wrong. I don't understand why.

LARGE When it's large, it looks even worse.

enddocument


Strangely enough, this doesn't happen with any other TTF file I've tried.



EDIT: Here's what pdffonts reports:



name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
P22HopperEdward CID TrueType Identity-H no no yes 13 0









share|improve this question



















  • 1





    what does pdffonts utility report on the resulting pdf

    – David Carlisle
    May 31 at 23:47











  • @DavidCarlisle Added its output to the question.

    – Draconis
    Jun 1 at 0:06











  • emb no looks a bit suspicious, why isn't it embedded (does the font have embedding licence restrictions?)

    – David Carlisle
    Jun 1 at 0:08











  • do you get the same with xetex and luatex

    – David Carlisle
    Jun 1 at 0:16






  • 2





    @DavidCarlisle Brilliant! Embedding restrictions were the problem. Strangely enough, the original file downloaded from the publisher allows embedding—the TTF I was using somehow gained additional restrictions along the way. Using the original font again fixed the issue.

    – Draconis
    Jun 1 at 0:20















5















I'm trying to use the fontspec package to use the P22 Hopper Edward font.



In all other software, this looks wonderful:



enter image description here



But while LaTeX throws no errors, the font looks wrong: the letter shapes aren't being used, but the letter sizes do seem to be.



Result image



MWE used to create this image:



documentclassarticle

usepackagefontspec
setmainfontHopper.ttf[Path=./fonts/,Ligatures=TeX]

begindocument

This text looks very weird and wrong. I don't understand why.

LARGE When it's large, it looks even worse.

enddocument


Strangely enough, this doesn't happen with any other TTF file I've tried.



EDIT: Here's what pdffonts reports:



name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
P22HopperEdward CID TrueType Identity-H no no yes 13 0









share|improve this question



















  • 1





    what does pdffonts utility report on the resulting pdf

    – David Carlisle
    May 31 at 23:47











  • @DavidCarlisle Added its output to the question.

    – Draconis
    Jun 1 at 0:06











  • emb no looks a bit suspicious, why isn't it embedded (does the font have embedding licence restrictions?)

    – David Carlisle
    Jun 1 at 0:08











  • do you get the same with xetex and luatex

    – David Carlisle
    Jun 1 at 0:16






  • 2





    @DavidCarlisle Brilliant! Embedding restrictions were the problem. Strangely enough, the original file downloaded from the publisher allows embedding—the TTF I was using somehow gained additional restrictions along the way. Using the original font again fixed the issue.

    – Draconis
    Jun 1 at 0:20













5












5








5








I'm trying to use the fontspec package to use the P22 Hopper Edward font.



In all other software, this looks wonderful:



enter image description here



But while LaTeX throws no errors, the font looks wrong: the letter shapes aren't being used, but the letter sizes do seem to be.



Result image



MWE used to create this image:



documentclassarticle

usepackagefontspec
setmainfontHopper.ttf[Path=./fonts/,Ligatures=TeX]

begindocument

This text looks very weird and wrong. I don't understand why.

LARGE When it's large, it looks even worse.

enddocument


Strangely enough, this doesn't happen with any other TTF file I've tried.



EDIT: Here's what pdffonts reports:



name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
P22HopperEdward CID TrueType Identity-H no no yes 13 0









share|improve this question
















I'm trying to use the fontspec package to use the P22 Hopper Edward font.



In all other software, this looks wonderful:



enter image description here



But while LaTeX throws no errors, the font looks wrong: the letter shapes aren't being used, but the letter sizes do seem to be.



Result image



MWE used to create this image:



documentclassarticle

usepackagefontspec
setmainfontHopper.ttf[Path=./fonts/,Ligatures=TeX]

begindocument

This text looks very weird and wrong. I don't understand why.

LARGE When it's large, it looks even worse.

enddocument


Strangely enough, this doesn't happen with any other TTF file I've tried.



EDIT: Here's what pdffonts reports:



name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
P22HopperEdward CID TrueType Identity-H no no yes 13 0






fontspec truetype






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 1 at 0:05







Draconis

















asked May 31 at 23:41









DraconisDraconis

4189




4189







  • 1





    what does pdffonts utility report on the resulting pdf

    – David Carlisle
    May 31 at 23:47











  • @DavidCarlisle Added its output to the question.

    – Draconis
    Jun 1 at 0:06











  • emb no looks a bit suspicious, why isn't it embedded (does the font have embedding licence restrictions?)

    – David Carlisle
    Jun 1 at 0:08











  • do you get the same with xetex and luatex

    – David Carlisle
    Jun 1 at 0:16






  • 2





    @DavidCarlisle Brilliant! Embedding restrictions were the problem. Strangely enough, the original file downloaded from the publisher allows embedding—the TTF I was using somehow gained additional restrictions along the way. Using the original font again fixed the issue.

    – Draconis
    Jun 1 at 0:20












  • 1





    what does pdffonts utility report on the resulting pdf

    – David Carlisle
    May 31 at 23:47











  • @DavidCarlisle Added its output to the question.

    – Draconis
    Jun 1 at 0:06











  • emb no looks a bit suspicious, why isn't it embedded (does the font have embedding licence restrictions?)

    – David Carlisle
    Jun 1 at 0:08











  • do you get the same with xetex and luatex

    – David Carlisle
    Jun 1 at 0:16






  • 2





    @DavidCarlisle Brilliant! Embedding restrictions were the problem. Strangely enough, the original file downloaded from the publisher allows embedding—the TTF I was using somehow gained additional restrictions along the way. Using the original font again fixed the issue.

    – Draconis
    Jun 1 at 0:20







1




1





what does pdffonts utility report on the resulting pdf

– David Carlisle
May 31 at 23:47





what does pdffonts utility report on the resulting pdf

– David Carlisle
May 31 at 23:47













@DavidCarlisle Added its output to the question.

– Draconis
Jun 1 at 0:06





@DavidCarlisle Added its output to the question.

– Draconis
Jun 1 at 0:06













emb no looks a bit suspicious, why isn't it embedded (does the font have embedding licence restrictions?)

– David Carlisle
Jun 1 at 0:08





emb no looks a bit suspicious, why isn't it embedded (does the font have embedding licence restrictions?)

– David Carlisle
Jun 1 at 0:08













do you get the same with xetex and luatex

– David Carlisle
Jun 1 at 0:16





do you get the same with xetex and luatex

– David Carlisle
Jun 1 at 0:16




2




2





@DavidCarlisle Brilliant! Embedding restrictions were the problem. Strangely enough, the original file downloaded from the publisher allows embedding—the TTF I was using somehow gained additional restrictions along the way. Using the original font again fixed the issue.

– Draconis
Jun 1 at 0:20





@DavidCarlisle Brilliant! Embedding restrictions were the problem. Strangely enough, the original file downloaded from the publisher allows embedding—the TTF I was using somehow gained additional restrictions along the way. Using the original font again fixed the issue.

– Draconis
Jun 1 at 0:20










1 Answer
1






active

oldest

votes


















9














An answer has been found!



The font in question had embedding restrictions in the file, so LuaTeX obediently refused to embed it. Thus, another font was substituted by the viewer.



Fortunately, in this case the publisher does allow embedding. I'm not sure how the copy I was using gained these restrictions, but redownloading the TTF and using that version fixed the problem. Just to confirm, I opened the file I had been using and removed all restrictions manually; sure enough, it started working immediately. (Though of course don't do this if the publisher didn't grant permission!)



EDIT: Even stranger, I examined the original file again. The permissions field had bit 1 set, which is undefined: the spec says that bit should always be left clear. It seems LuaTeX decided this meant "do not embed", even though none of the actual "do not embed" bits were set.



I suppose this is undefined behavior rather than a bug, but either way, it was unexpected.






share|improve this answer

























  • This is curious. I’ve licensed many fonts from P22 (using either P22’s own site or MyFonts.com) and never had a problem. Was the restriction on the copy from adobe.com?

    – Thérèse
    Jun 3 at 16:05











  • @Thérèse I'm unsure, honestly; it was on the copy I had on my hard drive, which I thought I got from adobe.com, but when I redownloaded it the restriction was gone. So I'm not sure where that came from.

    – Draconis
    Jun 3 at 16:19











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%2f493613%2ffontspec-loads-letter-sizes-but-not-the-letter-shapes%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









9














An answer has been found!



The font in question had embedding restrictions in the file, so LuaTeX obediently refused to embed it. Thus, another font was substituted by the viewer.



Fortunately, in this case the publisher does allow embedding. I'm not sure how the copy I was using gained these restrictions, but redownloading the TTF and using that version fixed the problem. Just to confirm, I opened the file I had been using and removed all restrictions manually; sure enough, it started working immediately. (Though of course don't do this if the publisher didn't grant permission!)



EDIT: Even stranger, I examined the original file again. The permissions field had bit 1 set, which is undefined: the spec says that bit should always be left clear. It seems LuaTeX decided this meant "do not embed", even though none of the actual "do not embed" bits were set.



I suppose this is undefined behavior rather than a bug, but either way, it was unexpected.






share|improve this answer

























  • This is curious. I’ve licensed many fonts from P22 (using either P22’s own site or MyFonts.com) and never had a problem. Was the restriction on the copy from adobe.com?

    – Thérèse
    Jun 3 at 16:05











  • @Thérèse I'm unsure, honestly; it was on the copy I had on my hard drive, which I thought I got from adobe.com, but when I redownloaded it the restriction was gone. So I'm not sure where that came from.

    – Draconis
    Jun 3 at 16:19















9














An answer has been found!



The font in question had embedding restrictions in the file, so LuaTeX obediently refused to embed it. Thus, another font was substituted by the viewer.



Fortunately, in this case the publisher does allow embedding. I'm not sure how the copy I was using gained these restrictions, but redownloading the TTF and using that version fixed the problem. Just to confirm, I opened the file I had been using and removed all restrictions manually; sure enough, it started working immediately. (Though of course don't do this if the publisher didn't grant permission!)



EDIT: Even stranger, I examined the original file again. The permissions field had bit 1 set, which is undefined: the spec says that bit should always be left clear. It seems LuaTeX decided this meant "do not embed", even though none of the actual "do not embed" bits were set.



I suppose this is undefined behavior rather than a bug, but either way, it was unexpected.






share|improve this answer

























  • This is curious. I’ve licensed many fonts from P22 (using either P22’s own site or MyFonts.com) and never had a problem. Was the restriction on the copy from adobe.com?

    – Thérèse
    Jun 3 at 16:05











  • @Thérèse I'm unsure, honestly; it was on the copy I had on my hard drive, which I thought I got from adobe.com, but when I redownloaded it the restriction was gone. So I'm not sure where that came from.

    – Draconis
    Jun 3 at 16:19













9












9








9







An answer has been found!



The font in question had embedding restrictions in the file, so LuaTeX obediently refused to embed it. Thus, another font was substituted by the viewer.



Fortunately, in this case the publisher does allow embedding. I'm not sure how the copy I was using gained these restrictions, but redownloading the TTF and using that version fixed the problem. Just to confirm, I opened the file I had been using and removed all restrictions manually; sure enough, it started working immediately. (Though of course don't do this if the publisher didn't grant permission!)



EDIT: Even stranger, I examined the original file again. The permissions field had bit 1 set, which is undefined: the spec says that bit should always be left clear. It seems LuaTeX decided this meant "do not embed", even though none of the actual "do not embed" bits were set.



I suppose this is undefined behavior rather than a bug, but either way, it was unexpected.






share|improve this answer















An answer has been found!



The font in question had embedding restrictions in the file, so LuaTeX obediently refused to embed it. Thus, another font was substituted by the viewer.



Fortunately, in this case the publisher does allow embedding. I'm not sure how the copy I was using gained these restrictions, but redownloading the TTF and using that version fixed the problem. Just to confirm, I opened the file I had been using and removed all restrictions manually; sure enough, it started working immediately. (Though of course don't do this if the publisher didn't grant permission!)



EDIT: Even stranger, I examined the original file again. The permissions field had bit 1 set, which is undefined: the spec says that bit should always be left clear. It seems LuaTeX decided this meant "do not embed", even though none of the actual "do not embed" bits were set.



I suppose this is undefined behavior rather than a bug, but either way, it was unexpected.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jun 3 at 15:54

























answered Jun 1 at 0:30









DraconisDraconis

4189




4189












  • This is curious. I’ve licensed many fonts from P22 (using either P22’s own site or MyFonts.com) and never had a problem. Was the restriction on the copy from adobe.com?

    – Thérèse
    Jun 3 at 16:05











  • @Thérèse I'm unsure, honestly; it was on the copy I had on my hard drive, which I thought I got from adobe.com, but when I redownloaded it the restriction was gone. So I'm not sure where that came from.

    – Draconis
    Jun 3 at 16:19

















  • This is curious. I’ve licensed many fonts from P22 (using either P22’s own site or MyFonts.com) and never had a problem. Was the restriction on the copy from adobe.com?

    – Thérèse
    Jun 3 at 16:05











  • @Thérèse I'm unsure, honestly; it was on the copy I had on my hard drive, which I thought I got from adobe.com, but when I redownloaded it the restriction was gone. So I'm not sure where that came from.

    – Draconis
    Jun 3 at 16:19
















This is curious. I’ve licensed many fonts from P22 (using either P22’s own site or MyFonts.com) and never had a problem. Was the restriction on the copy from adobe.com?

– Thérèse
Jun 3 at 16:05





This is curious. I’ve licensed many fonts from P22 (using either P22’s own site or MyFonts.com) and never had a problem. Was the restriction on the copy from adobe.com?

– Thérèse
Jun 3 at 16:05













@Thérèse I'm unsure, honestly; it was on the copy I had on my hard drive, which I thought I got from adobe.com, but when I redownloaded it the restriction was gone. So I'm not sure where that came from.

– Draconis
Jun 3 at 16:19





@Thérèse I'm unsure, honestly; it was on the copy I had on my hard drive, which I thought I got from adobe.com, but when I redownloaded it the restriction was gone. So I'm not sure where that came from.

– Draconis
Jun 3 at 16:19

















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%2f493613%2ffontspec-loads-letter-sizes-but-not-the-letter-shapes%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

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form