[ 
https://issues.apache.org/jira/browse/PDFBOX-5348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr resolved PDFBOX-5348.
-------------------------------------
    Fix Version/s: 2.0.26
                   3.0.0 PDFBox
         Assignee: Tilman Hausherr
       Resolution: Fixed

Very good suggestion, thanks!

> FontMapper should also take into account the user's font directory on Windows 
> operating systems
> -----------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5348
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5348
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: FontBox
>    Affects Versions: 2.0.25
>         Environment: Windows 10 on x86-64
>            Reporter: Daniel Fischer
>            Assignee: Tilman Hausherr
>            Priority: Minor
>              Labels: fontbox
>             Fix For: 2.0.26, 3.0.0 PDFBox
>
>
> If you install a new font on a windows OS you can do that in two ways (e.g. 
> from within the Windows Explorer:
>  # For all users.
>  # Only for the logged in user.
> Option 1 installs the font into directory %windir%\fonts .
> Option 2 installs it into directory %LOCALAPPDATA%\Microsoft\Windows\Fonts of 
> the current user.
> If I use Option 2 for font installation, the FontMapper can not find the font 
> and guesses a fallback font.
> I use the FontMapper like that:
> {{final FontMapping<FontBoxFont> firstMapping = 
> FontMappers.instance().getFontBoxFont(pFontName, null);}}
>  
> After debugging IMHO option 2 should be added to the Windows Font 
> autodetection  
> [org.apache.fontbox.util.autodetect.WindowsFontDirFinder|https://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/util/autodetect/WindowsFontDirFinder.java?view=markup]
>  ?
> Interestingly on [Unix-like OSes the user's home font folder is taken into 
> account|https://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/util/autodetect/UnixFontDirFinder.java?revision=1888485&view=markup#l35].



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to