Comments (8)
Interesting that this bug only appears in Firefox, Chrome and Safari. In Opera and IE 10 it seems everything is working fine.
from ftcolumnflow.
I've tried several solutions and it seems the calculations that Javascript does are done before the custom fonts are actually loaded. So far it seems setting using the WebFont loader solves the issue. Still running tests though.
from ftcolumnflow.
@r007 Two things you have to keep in mind while using FTColumnFlow:
- Apply the same fonts and styles to both the prerender area as the actually rendered columns
- Use a font loader such as the Typekit webfont loader (https://github.com/typekit/webfontloader) to ensure the fonts are loaded before columnizing.
from ftcolumnflow.
A quick note btw, if you use selectors such as p + p { text-indent: 30px }; you need to change FTColumnFlow a bit to let the next column inherit the indentation. Will work on a pull request to suggest the change.
from ftcolumnflow.
@r007
We've worked with FTColumnFlow for a while now with custom fonts, using the webfont loader by Typekit/Google seems to fix the problem.
https://developers.google.com/fonts/docs/webfont_loader
Make sure you load all the fonts including the various variants/weights.
from ftcolumnflow.
Can you expound on the comment above regarding selectors? What changes need to occur? I am having the same problem above with lines being duplicated or lost even without the custom fonts and I'm trying to find what the problem is.
from ftcolumnflow.
Hi @jessedijkstra and @r007. Thanks for this discussion. I'll add a note to the documentation to raise this issue - any resources which might load after ColumnFlow runs could potentially cause lines to be missing or duplicated. The fix for fonts is to use webfontloader or similar to ensure the fonts are loaded.
from ftcolumnflow.
@georgecrawford @topherreynoso
If you use a fontloader to load the fonts before columnizing the issue won't occur.
Another issue that exists is the browsers native search, because it moves the columns down if a word can be found in the overflow.
from ftcolumnflow.
Related Issues (20)
- Attach to last page support for fixed content HOT 1
- Consider using DocumentFragment rather than reading/writing innerHTML as a string
- Implement unit test coverage tooling and badging
- Break before/after feature HOT 2
- inline image lineheight issue while reflow HOT 2
- Question : why columnflow? HOT 2
- IE9 Support HOT 1
- Calculation is off when using the browser zoom feature HOT 1
- doesn't work HOT 4
- nowrap does not break on specific nested content HOT 2
- FTColumnFlow to PDF HOT 11
- Flowed content placement issue when entire 1st page is filled with fixed content HOT 4
- Spliting paragraphs between columns HOT 7
- Is it possible to have a new element other than fixed and flowed element? HOT 3
- Same IDs are causing conflicts
- FTColumnFlow is not working if embedded media (audio tag, to be exact) are used
- Vertical Space in demos HOT 4
- Tall `nowrap` elements are cropped and the excess is discarded
- Margins between pages when printing HOT 1
- Handling of zoom factor changes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftcolumnflow.