forked from external/yambar
font: initial port from cairo scaled fonts to raw freetype + pixman
This commit is contained in:
parent
393e1909b7
commit
b3a5e0b5d7
6 changed files with 659 additions and 191 deletions
9
stride.h
Normal file
9
stride.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <pixman.h>
|
||||
|
||||
static inline int
|
||||
stride_for_format_and_width(pixman_format_code_t format, int width)
|
||||
{
|
||||
return (((PIXMAN_FORMAT_BPP(format) * width + 7) / 8 + 4 - 1) & -4);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue