Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-system Fonts Don't Seem to be Supported #7

Open
schmidtw opened this issue May 2, 2011 · 4 comments
Open

Non-system Fonts Don't Seem to be Supported #7

schmidtw opened this issue May 2, 2011 · 4 comments

Comments

@schmidtw
Copy link

schmidtw commented May 2, 2011

It appears that the non-system font directory that can be passed in from maven-jdocbook-plugin gets silently ignored, providing no way to use a non-system font directory path.

src/main/java/org/jboss/jdocbook/render/fop/FopConfigHelper.java:

// did not work for me :(
//          if ( environment.getFontDirectories() != null ) {
//              for ( File fontDirectory : environment.getFontDirectories() ) {
//                  DefaultConfiguration fontDirectoryElement = new DefaultConfiguration( "directory" );
//                  fontDirectoryElement.setValue( fontDirectory.getAbsolutePath() );
//                  fontsConfig.addChild( fontDirectoryElement );
//              }
//          }
@sebersole
Copy link
Member

What does work?

@schmidtw
Copy link
Author

schmidtw commented Dec 7, 2011

I'm sorry, I don't understand your question. The problem I was trying to solve was as follows:

A user/author checks out the document maven project. When she builds the document, the correct fonts are not being used (which are part of the project pom.xml file), but instead system fonts are being substituted.

@sebersole
Copy link
Member

And I am asking you what is the fix to make it do what you want? None of
us are really "DocBook people". Mostly we are Hibernate developers and we
mostly get this.to work for our cases. You have a much better chance of
this getting resolved if you tell us how.

[email protected]
http://hibernate.org
On Dec 7, 2011 1:24 PM, "schmidtw" <
[email protected]>
wrote:

I'm sorry, I don't understand your question. The problem I was trying to
solve was as follows:

A user/author checks out the document maven project. When she builds the
document, the correct fonts are not being used (which are part of the
project pom.xml file), but instead system fonts are being substituted.


Reply to this email directly or view it on GitHub:
#7 (comment)

@sebersole
Copy link
Member

I do remember there being a "FOP font cache". You might want to look at deleting that cache file and then rerunning your build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants